File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 13
13
mov x30 , # 2
14
14
/ * test - gdb - x30 * /
15
15
16
+ fmov d0 , # 1 . 5
17
+ / * test - gdb - d0 * /
18
+ fmov d1 , # 2 . 5
19
+ / * test - gdb - d1 * /
20
+
21
+ fmov d30 , # 1 . 5
22
+ / * test - gdb - d30 * /
23
+ fmov d31 , # 2 . 5
24
+ / * test - gdb - d31 * /
25
+
16
26
/ * Exit required since we meesed up with x30 which is the lr. * /
17
27
mov x0 , # 0
18
28
bl exit
Original file line number Diff line number Diff line change 1
1
def test (self ):
2
2
self .sendline ('tbreak main' )
3
3
self .sendline ('continue' )
4
+
4
5
self .continue_to ('x0' )
5
6
self .sendline ('set $x0 = 3' )
6
7
self .continue_to ('x1' )
@@ -12,3 +13,15 @@ def test(self):
12
13
assert self .get_int ('$x30' ) == 3
13
14
self .continue_to ('x30' )
14
15
assert self .get_int ('$x30' ) == 2
16
+
17
+ self .continue_to ('d0' )
18
+ self .sendline ('set $d0 = 3.5' )
19
+ self .continue_to ('d1' )
20
+ assert self .get_float ('$d0' ) == 3.5
21
+ assert self .get_float ('$d1' ) == 2.5
22
+ self .sendline ('set $d31 = 3.5' )
23
+ self .continue_to ('d30' )
24
+ assert self .get_float ('$d30' ) == 1.5
25
+ assert self .get_float ('$d31' ) == 3.5
26
+ self .continue_to ('d31' )
27
+ assert self .get_float ('$d31' ) == 2.5
You can’t perform that action at this time.
0 commit comments