qemu/tests/tcg/lm32/test_muli.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name MULI_1
   6mvi r1, 0
   7muli r3, r1, 0
   8check_r3 0
   9
  10test_name MULI_2
  11mvi r1, 1
  12muli r3, r1, 0
  13check_r3 0
  14
  15test_name MULI_3
  16mvi r1, 0
  17muli r3, r1, 1
  18check_r3 0
  19
  20test_name MULI_4
  21mvi r1, 1
  22muli r3, r1, 1
  23check_r3 1
  24
  25test_name MULI_5
  26mvi r1, 2
  27muli r3, r1, -1
  28check_r3 -2
  29
  30test_name MULI_6
  31mvi r1, -2
  32muli r3, r1, -1
  33check_r3 2
  34
  35test_name MULI_7
  36mvi r1, 0x1234
  37muli r3, r1, 0x789
  38check_r3 0x8929d4
  39
  40test_name MULI_8
  41mvi r3, 4
  42muli r3, r3, 4
  43check_r3 16
  44
  45end
  46