qemu/tests/tcg/lm32/test_cmpgeu.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name CMPGEU_1
   6mvi r1, 0
   7mvi r2, 0
   8cmpgeu r3, r1, r2
   9check_r3 1
  10
  11test_name CMPGEU_2
  12mvi r1, 0
  13mvi r2, 1
  14cmpgeu r3, r1, r2
  15check_r3 0
  16
  17test_name CMPGEU_3
  18mvi r1, 1
  19mvi r2, 0
  20cmpgeu r3, r1, r2
  21check_r3 1
  22
  23test_name CMPGEU_4
  24mvi r1, 1
  25mvi r2, 1
  26cmpgeu r3, r1, r2
  27check_r3 1
  28
  29test_name CMPGEU_5
  30mvi r1, 0
  31mvi r2, -1
  32cmpgeu r3, r1, r2
  33check_r3 0
  34
  35test_name CMPGEU_6
  36mvi r1, -1
  37mvi r2, 0
  38cmpgeu r3, r1, r2
  39check_r3 1
  40
  41test_name CMPGEU_7
  42mvi r1, -1
  43mvi r2, -1
  44cmpgeu r3, r1, r2
  45check_r3 1
  46
  47test_name CMPGEU_8
  48mvi r3, 0
  49mvi r2, 1
  50cmpgeu r3, r3, r2
  51check_r3 0
  52
  53test_name CMPGEU_9
  54mvi r3, 1
  55mvi r2, 0
  56cmpgeu r3, r3, r2
  57check_r3 1
  58
  59test_name CMPGEU_10
  60mvi r3, 0
  61cmpgeu r3, r3, r3
  62check_r3 1
  63
  64end
  65