qemu/tests/tcg/lm32/test_bne.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name BNE_1
   6mvi r1, 0
   7mvi r2, 0
   8bne r1, r2, 1f
   9tc_pass
  10bi 2f
  111:
  12tc_fail
  132:
  14
  15test_name BNE_2
  16mvi r1, 1
  17mvi r2, 0
  18bne r1, r2, 1f
  19tc_fail
  20bi 2f
  211:
  22tc_pass
  232:
  24
  25test_name BNE_3
  26mvi r1, 0
  27mvi r2, 1
  28bne r1, r2, 1f
  29tc_fail
  30bi 2f
  311:
  32tc_pass
  332:
  34
  35bi 2f
  361:
  37tc_fail
  38bi 3f
  392:
  40test_name BNE_4
  41mvi r1, 1
  42mvi r2, 1
  43bne r1, r2, 1b
  44tc_pass
  453:
  46
  47end
  48
  49