Add test for fcmp instructions with normal register dst
This commit is contained in:
parent
2eb77f8143
commit
d4b9787c47
2
src/fcmp.gdb
Normal file
2
src/fcmp.gdb
Normal file
@ -0,0 +1,2 @@
|
||||
c
|
||||
info registers r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13
|
19
src/fcmp.log
Normal file
19
src/fcmp.log
Normal file
@ -0,0 +1,19 @@
|
||||
Breakpoint 1 at 0x10078
|
||||
Breakpoint 2 at 0x100f8
|
||||
0x0000000000010078 in _start ()
|
||||
|
||||
Breakpoint 2, 0x00000000000100f8 in _stop ()
|
||||
r0 <00> 0x3fe0000000000000 4602678819172646912
|
||||
r1 <00> 0x3ff0000000000000 4607182418800017408
|
||||
r2 <00> 0x0 0
|
||||
r3 <00> 0xffffffffffffffff 18446744073709551615
|
||||
r4 <00> 0xffffffffffffffff 18446744073709551615
|
||||
r5 <00> 0x0 0
|
||||
r6 <00> 0xffffffffffffffff 18446744073709551615
|
||||
r7 <00> 0x0 0
|
||||
r8 <00> 0x0 0
|
||||
r9 <00> 0xffffffffffffffff 18446744073709551615
|
||||
r10 <00> 0xffffffffffffffff 18446744073709551615
|
||||
r11 <00> 0x0 0
|
||||
r12 <00> 0x0 0
|
||||
r13 <00> 0xffffffffffffffff 18446744073709551615
|
28
src/fcmp.s
Normal file
28
src/fcmp.s
Normal file
@ -0,0 +1,28 @@
|
||||
.global _start
|
||||
.global _stop
|
||||
|
||||
_start:
|
||||
{
|
||||
addd 0, 0x3fe0000000000000, %r0
|
||||
addd 0, 0x3ff0000000000000, %r1
|
||||
}
|
||||
{
|
||||
fcmpeqd %r0, %r1, %r2
|
||||
fcmpeqd %r0, %r0, %r3
|
||||
fcmpneqd %r0, %r1, %r4
|
||||
fcmpneqd %r1, %r1, %r5
|
||||
}
|
||||
{
|
||||
fcmpled %r0, %r1, %r6
|
||||
fcmpled %r1, %r0, %r7
|
||||
fcmpnled %r0, %r1, %r8
|
||||
fcmpnled %r1, %r0, %r9
|
||||
}
|
||||
{
|
||||
fcmpltd %r0, %r1, %r10
|
||||
fcmpltd %r1, %r0, %r11
|
||||
fcmpnltd %r0, %r1, %r12
|
||||
fcmpnltd %r1, %r0, %r13
|
||||
}
|
||||
_stop:
|
||||
udivs 0, 0, %empty
|
Loading…
Reference in New Issue
Block a user