bitrev: fix test
This commit is contained in:
parent
112420fca3
commit
e7db8c4046
@ -1,10 +1,10 @@
|
||||
Breakpoint 1 at 0x10078
|
||||
Breakpoint 2 at 0x10100
|
||||
Breakpoint 2 at 0x10118
|
||||
0x0000000000010078 in _start ()
|
||||
|
||||
Breakpoint 2, 0x0000000000010100 in _stop ()
|
||||
r6 <00> 0xc2e01e6a2c48 214267838737480
|
||||
r7 <00> 0x1000f77db57b 17596338255227
|
||||
Breakpoint 2, 0x0000000000010118 in _stop ()
|
||||
r6 <00> 0x1e6a2c48 510274632
|
||||
r7 <00> 0xf77db57b 4152210811
|
||||
r8 <00> 0x50505050 1347440720
|
||||
r9 <00> 0x7b03b57b 2063840635
|
||||
r10 <00> 0xf7b3d591e6a2c48 1115552785675988040
|
||||
|
12
src/bitrev.s
12
src/bitrev.s
@ -3,14 +3,20 @@
|
||||
|
||||
_start:
|
||||
{
|
||||
adds 0, 0x12345678, %r0
|
||||
adds 0, 0xdeadbeef, %r1
|
||||
adds 0, 0x0a0a0a0a, %r2
|
||||
addd 0, 0x12345678, %r0
|
||||
addd 0, 0xdeadbeef, %r1
|
||||
addd 0, 0x0a0a0a0a, %r2
|
||||
}
|
||||
{
|
||||
addd 0, 0x123456789abcdef0, %r3
|
||||
addd 0, 0x00cafefeedcaca00, %r4
|
||||
}
|
||||
{
|
||||
addd 0, 0, %r6
|
||||
addd 0, 0, %r7
|
||||
addd 0, 0, %r8
|
||||
addd 0, 0, %r9
|
||||
}
|
||||
{
|
||||
addd 0, 0xa0a0a0a0a0a0a0a0, %r5
|
||||
bitrevs %r0, %r6
|
||||
|
Loading…
Reference in New Issue
Block a user