qemu/tests/tcg/lm32/test_cmpnei.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name CMPNEI_1
   6mvi r1, 0
   7cmpnei r3, r1, 0
   8check_r3 0
   9
  10test_name CMPNEI_2
  11mvi r1, 0
  12cmpnei r3, r1, 1
  13check_r3 1
  14
  15test_name CMPNEI_3
  16mvi r1, 1
  17cmpnei r3, r1, 0
  18check_r3 1
  19
  20test_name CMPNEI_4
  21load r1 0xffffffff
  22cmpnei r3, r1, -1
  23check_r3 0
  24
  25test_name CMPNEI_5
  26mvi r3, 0
  27cmpnei r3, r3, 0
  28check_r3 0
  29
  30test_name CMPNEI_6
  31mvi r3, 0
  32cmpnei r3, r3, 1
  33check_r3 1
  34
  35end
  36