qemu/tests/tcg/lm32/test_xnori.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name XNORI_1
   6mvi r1, 0
   7xnori r3, r1, 0
   8check_r3 0xffffffff
   9
  10test_name XNORI_2
  11mvi r1, 0
  12xnori r3, r1, 1
  13check_r3 0xfffffffe
  14
  15test_name XNORI_3
  16mvi r1, 1
  17xnori r3, r1, 1
  18check_r3 0xffffffff
  19
  20test_name XNORI_4
  21mvi r1, 1
  22xnori r3, r1, 0
  23check_r3 0xfffffffe
  24
  25test_name XNORI_5
  26load r1 0xaa55aa55
  27xnori r3, r1, 0x5555
  28check_r3 0x55aa00ff
  29
  30test_name XNORI_6
  31load r3 0xaa55aa55
  32xnori r3, r3, 0x5555
  33check_r3 0x55aa00ff
  34
  35end
  36