qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

check_dstep.s (634B)


      1 # mach: crisv0 crisv3 crisv8 crisv10 crisv32
      2 # output: fffffffc\n4\nffff\nfffffffe\n9bf3911b\n0\n
      3 
      4  .include "testutils.inc"
      5  start
      6  moveq -1,r3
      7  moveq 2,r4
      8  dstep r4,r3
      9  test_move_cc 1 0 0 0
     10  checkr3 fffffffc
     11 
     12  moveq 2,r3
     13  moveq -1,r4
     14  dstep r4,r3
     15  test_move_cc 0 0 0 0
     16  checkr3 4
     17 
     18  move.d 0xffff,r4
     19  move.d r4,r3
     20  dstep r4,r3
     21  test_move_cc 0 0 0 0
     22  checkr3 ffff
     23 
     24  moveq -1,r4
     25  move.d r4,r3
     26  dstep r4,r3
     27  test_move_cc 1 0 0 0
     28  checkr3 fffffffe
     29 
     30  move.d 0x5432f789,r4
     31  move.d 0x78134452,r3
     32  dstep r4,r3
     33  test_move_cc 1 0 0 0
     34  checkr3 9bf3911b
     35 
     36  move.d 0xffff,r3
     37  move.d 0x1fffe,r4
     38  dstep r4,r3
     39  test_move_cc 0 1 0 0
     40  checkr3 0
     41 
     42  quit