qemu/tests/tcg/lm32/test_cmpei.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name CMPEI_1
   6mvi r1, 0
   7cmpei r3, r1, 0
   8check_r3 1
   9
  10test_name CMPEI_2
  11mvi r1, 0
  12cmpei r3, r1, 1
  13check_r3 0
  14
  15test_name CMPEI_3
  16mvi r1, 1
  17cmpei r3, r1, 0
  18check_r3 0
  19
  20test_name CMPEI_4
  21load r1 0xffffffff
  22cmpei r3, r1, -1
  23check_r3 1
  24
  25test_name CMPEI_5
  26mvi r3, 0
  27cmpei r3, r3, 0
  28check_r3 1
  29
  30test_name CMPEI_6
  31mvi r3, 0
  32cmpei r3, r3, 1
  33check_r3 0
  34
  35end
  36