qemu/tests/tcg/lm32/test_nor.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name NOR_1
   6mvi r1, 0
   7mvi r2, 0
   8nor r3, r1, r2
   9check_r3 0xffffffff
  10
  11test_name NOR_2
  12mvi r1, 0
  13mvi r2, 1
  14nor r3, r1, r2
  15check_r3 0xfffffffe
  16
  17test_name NOR_3
  18mvi r1, 1
  19mvi r2, 1
  20nor r3, r1, r2
  21check_r3 0xfffffffe
  22
  23test_name NOR_4
  24mvi r1, 1
  25mvi r2, 0
  26nor r3, r1, r2
  27check_r3 0xfffffffe
  28
  29test_name NOR_5
  30load r1 0xaa55aa55
  31load r2 0x55aa55aa
  32nor r3, r1, r2
  33check_r3 0
  34
  35test_name NOR_6
  36load r1 0xaa550000
  37load r2 0x0000aa55
  38nor r3, r1, r2
  39check_r3 0x55aa55aa
  40
  41test_name NOR_7
  42load r1 0xaa55aa55
  43nor r3, r1, r1
  44check_r3 0x55aa55aa
  45
  46test_name NOR_8
  47load r3 0xaa55aa55
  48nor r3, r3, r3
  49check_r3 0x55aa55aa
  50
  51end
  52