bitrev: fix test

This commit is contained in:
Alibek Omarov 2020-12-02 13:13:58 +03:00 committed by root
parent 112420fca3
commit e7db8c4046
2 changed files with 13 additions and 7 deletions

View File

@ -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

View File

@ -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