qemu/tests/tcg/lm32/test_ori.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name ORI_1
   6mvi r1, 0
   7ori r3, r1, 0
   8check_r3 0
   9
  10test_name ORI_2
  11mvi r1, 0
  12ori r3, r1, 1
  13check_r3 1
  14
  15test_name ORI_3
  16mvi r1, 1
  17ori r3, r1, 1
  18check_r3 1
  19
  20test_name ORI_4
  21mvi r1, 1
  22ori r3, r1, 0
  23check_r3 1
  24
  25test_name ORI_5
  26load r1 0xaa55aa55
  27ori r3, r1, 0x55aa
  28check_r3 0xaa55ffff
  29
  30test_name ORI_6
  31load r3 0xaa55aa55
  32ori r3, r3, 0x55aa
  33check_r3 0xaa55ffff
  34
  35end
  36