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