qemu/tests/tcg/lm32/test_divu.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name DIVU_1
   6mvi r1, 0
   7mvi r2, 1
   8divu r3, r1, r2
   9check_r3 0
  10
  11test_name DIVU_2
  12mvi r1, 1
  13mvi r2, 1
  14divu r3, r1, r2
  15check_r3 1
  16
  17test_name DIVU_3
  18mvi r1, 0
  19mvi r2, 0
  20divu r3, r1, r2
  21check_excp 16
  22
  23test_name DIVU_4
  24load r1 0xabcdef12
  25load r2 0x12345
  26divu r3, r1, r2
  27check_r3 0x9700
  28
  29end
  30