qemu/tests/tcg/lm32/test_cmpne.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name CMPNE_1
   6mvi r1, 0
   7mvi r2, 0
   8cmpne r3, r1, r2
   9check_r3 0
  10
  11test_name CMPNE_2
  12mvi r1, 0
  13mvi r2, 1
  14cmpne r3, r1, r2
  15check_r3 1
  16
  17test_name CMPNE_3
  18mvi r1, 1
  19mvi r2, 0
  20cmpne r3, r1, r2
  21check_r3 1
  22
  23test_name CMPNE_4
  24mvi r3, 0
  25mvi r2, 1
  26cmpne r3, r3, r2
  27check_r3 1
  28
  29test_name CMPNE_5
  30mvi r3, 0
  31mvi r2, 0
  32cmpne r3, r3, r2
  33check_r3 0
  34
  35test_name CMPNE_6
  36mvi r3, 0
  37cmpne r3, r3, r3
  38check_r3 0
  39
  40end
  41