qemu/tests/tcg/lm32/test_bgeu.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name BGEU_1
   6mvi r1, 0
   7mvi r2, 0
   8bgeu r1, r2, 1f
   9tc_fail
  10bi 2f
  111:
  12tc_pass
  132:
  14
  15test_name BGEU_2
  16mvi r1, 1
  17mvi r2, 0
  18bgeu r1, r2, 1f
  19tc_fail
  20bi 2f
  211:
  22tc_pass
  232:
  24
  25test_name BGEU_3
  26mvi r1, 0
  27mvi r2, 1
  28bgeu r1, r2, 1f
  29tc_pass
  30bi 2f
  311:
  32tc_fail
  332:
  34
  35test_name BGEU_4
  36mvi r1, 0
  37mvi r2, -1
  38bgeu r1, r2, 1f
  39tc_pass
  40bi 2f
  411:
  42tc_fail
  432:
  44
  45test_name BGEU_5
  46mvi r1, -1
  47mvi r2, 0
  48bgeu r1, r2, 1f
  49tc_fail
  50bi 2f
  511:
  52tc_pass
  532:
  54
  55test_name BGEU_6
  56mvi r1, -1
  57mvi r2, -1
  58bgeu r1, r2, 1f
  59tc_fail
  60bi 2f
  611:
  62tc_pass
  632:
  64
  65bi 2f
  661:
  67tc_pass
  68bi 3f
  692:
  70test_name BGEU_7
  71mvi r1, 1
  72mvi r2, 0
  73bgeu r1, r2, 1b
  74tc_fail
  753:
  76
  77end
  78
  79