qemu/tests/tcg/lm32/test_orhi.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name ORHI_1
   6mvi r1, 0
   7orhi r3, r1, 0
   8check_r3 0
   9
  10test_name ORHI_2
  11mvi r1, 0
  12orhi r3, r1, 1
  13check_r3 0x00010000
  14
  15test_name ORHI_3
  16load r1 0x00010000
  17orhi r3, r1, 1
  18check_r3 0x00010000
  19
  20test_name ORHI_4
  21mvi r1, 1
  22orhi r3, r1, 0
  23check_r3 1
  24
  25test_name ORHI_5
  26load r1 0xaa55aa55
  27orhi r3, r1, 0x55aa
  28check_r3 0xffffaa55
  29
  30test_name ORHI_6
  31load r3 0xaa55aa55
  32orhi r3, r3, 0x55aa
  33check_r3 0xffffaa55
  34
  35end
  36