qemu/tests/tcg/lm32/test_cmpge.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name CMPGE_1
   6mvi r1, 0
   7mvi r2, 0
   8cmpge r3, r1, r2
   9check_r3 1
  10
  11test_name CMPGE_2
  12mvi r1, 0
  13mvi r2, 1
  14cmpge r3, r1, r2
  15check_r3 0
  16
  17test_name CMPGE_3
  18mvi r1, 1
  19mvi r2, 0
  20cmpge r3, r1, r2
  21check_r3 1
  22
  23test_name CMPGE_4
  24mvi r1, 1
  25mvi r2, 1
  26cmpge r3, r1, r2
  27check_r3 1
  28
  29test_name CMPGE_5
  30mvi r1, 0
  31mvi r2, -1
  32cmpge r3, r1, r2
  33check_r3 1
  34
  35test_name CMPGE_6
  36mvi r1, -1
  37mvi r2, 0
  38cmpge r3, r1, r2
  39check_r3 0
  40
  41test_name CMPGE_7
  42mvi r1, -1
  43mvi r2, -1
  44cmpge r3, r1, r2
  45check_r3 1
  46
  47test_name CMPGE_8
  48mvi r3, 0
  49mvi r2, 1
  50cmpge r3, r3, r2
  51check_r3 0
  52
  53test_name CMPGE_9
  54mvi r3, 1
  55mvi r2, 0
  56cmpge r3, r3, r2
  57check_r3 1
  58
  59test_name CMPGE_10
  60mvi r3, 0
  61cmpge r3, r3, r3
  62check_r3 1
  63
  64end
  65