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