qemu/tests/tcg/lm32/test_cmpgei.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name CMPGEI_1
   6mvi r1, 0
   7cmpgei r3, r1, 0
   8check_r3 1
   9
  10test_name CMPGEI_2
  11mvi r1, 0
  12cmpgei r3, r1, 1
  13check_r3 0
  14
  15test_name CMPGEI_3
  16mvi r1, 1
  17cmpgei r3, r1, 0
  18check_r3 1
  19
  20test_name CMPGEI_4
  21mvi r1, 1
  22cmpgei r3, r1, 1
  23check_r3 1
  24
  25test_name CMPGEI_5
  26mvi r1, 0
  27cmpgei r3, r1, -1
  28check_r3 1
  29
  30test_name CMPGEI_6
  31mvi r1, -1
  32cmpgei r3, r1, 0
  33check_r3 0
  34
  35test_name CMPGEI_7
  36mvi r1, -1
  37cmpgei r3, r1, -1
  38check_r3 1
  39
  40test_name CMPGEI_8
  41mvi r3, 0
  42cmpgei r3, r3, 1
  43check_r3 0
  44
  45test_name CMPGEI_9
  46mvi r3, 1
  47cmpgei r3, r3, 0
  48check_r3 1
  49
  50test_name CMPGEI_10
  51mvi r3, 0
  52cmpgei r3, r3, 0
  53check_r3 1
  54
  55test_name CMPGEI_11
  56mvi r1, 0
  57cmpgei r3, r1, -32768
  58check_r3 1
  59
  60test_name CMPGEI_12
  61mvi r1, -1
  62cmpgei r3, r1, -32768
  63check_r3 1
  64
  65test_name CMPGEI_13
  66mvi r1, -32768
  67cmpgei r3, r1, -32768
  68check_r3 1
  69
  70end
  71