cachepc-qemu

Fork of AMDESE/qemu with changes for cachepc side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-qemu
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

check_orr.s (1273B)


      1# mach: crisv0 crisv3 crisv8 crisv10 crisv32
      2# output: 3\n3\nffff\nffffffff\n7c33f7db\nffff0003\n3\nfedaffff\n7813f7db\n3\n3\nfeb\n781344db\n
      3
      4 .include "testutils.inc"
      5 start
      6 moveq 1,r3
      7 moveq 2,r4
      8 or.d r4,r3
      9 test_move_cc 0 0 0 0
     10 checkr3 3
     11
     12 moveq 2,r3
     13 moveq 1,r4
     14 or.d r4,r3
     15 test_move_cc 0 0 0 0
     16 checkr3 3
     17
     18 move.d 0xff0f,r4
     19 move.d 0xf0ff,r3
     20 or.d r4,r3
     21 test_move_cc 0 0 0 0
     22 checkr3 ffff
     23
     24 moveq -1,r4
     25 move.d r4,r3
     26 or.d r4,r3
     27 test_move_cc 1 0 0 0
     28 checkr3 ffffffff
     29
     30 move.d 0x5432f789,r4
     31 move.d 0x78134452,r3
     32 or.d r4,r3
     33 test_move_cc 0 0 0 0
     34 checkr3 7c33f7db
     35
     36 move.d 0xffff0001,r3
     37 moveq 2,r4
     38 or.w r4,r3
     39 test_move_cc 0 0 0 0
     40 checkr3 ffff0003
     41
     42 moveq 2,r3
     43 move.d 0xffff0001,r4
     44 or.w r4,r3
     45 test_move_cc 0 0 0 0
     46 checkr3 3
     47
     48 move.d 0xfedaffaf,r3
     49 move.d 0xffffff5f,r4
     50 or.w r4,r3
     51 test_move_cc 1 0 0 0
     52 checkr3 fedaffff
     53
     54 move.d 0x5432f789,r4
     55 move.d 0x78134452,r3
     56 or.w r4,r3
     57 test_move_cc 1 0 0 0
     58 checkr3 7813f7db
     59
     60 moveq 1,r3
     61 move.d 0xffffff02,r4
     62 or.b r4,r3
     63 test_move_cc 0 0 0 0
     64 checkr3 3
     65
     66 moveq 2,r3
     67 moveq 1,r4
     68 or.b r4,r3
     69 test_move_cc 0 0 0 0
     70 checkr3 3
     71
     72 move.d 0x4a,r4
     73 move.d 0xfa3,r3
     74 or.b r4,r3
     75 test_move_cc 1 0 0 0
     76 checkr3 feb
     77
     78 move.d 0x5432f789,r4
     79 move.d 0x78134453,r3
     80 or.b r4,r3
     81 test_move_cc 1 0 0 0
     82 checkr3 781344db
     83
     84 quit