qemu/tests/tcg/lm32/test_or.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name OR_1
   6mvi r1, 0
   7mvi r2, 0
   8or r3, r1, r2
   9check_r3 0
  10
  11test_name OR_2
  12mvi r1, 0
  13mvi r2, 1
  14or r3, r1, r2
  15check_r3 1
  16
  17test_name OR_3
  18mvi r1, 1
  19mvi r2, 1
  20or r3, r1, r2
  21check_r3 1
  22
  23test_name OR_4
  24mvi r1, 1
  25mvi r2, 0
  26or r3, r1, r2
  27check_r3 1
  28
  29test_name OR_5
  30load r1 0xaa55aa55
  31load r2 0x55aa55aa
  32or r3, r1, r2
  33check_r3 0xffffffff
  34
  35test_name OR_6
  36load r1 0xaa550000
  37load r2 0x0000aa55
  38or r3, r1, r2
  39check_r3 0xaa55aa55
  40
  41test_name OR_7
  42load r1 0xaa55aa55
  43or r3, r1, r1
  44check_r3 0xaa55aa55
  45
  46test_name OR_8
  47load r3 0xaa55aa55
  48or r3, r3, r3
  49check_r3 0xaa55aa55
  50
  51end
  52