qemu/tests/tcg/lm32/test_sli.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name SLI_1
   6mvi r1, 1
   7sli r3, r1, 0
   8check_r3 1
   9
  10test_name SLI_2
  11mvi r1, 0
  12sli r3, r1, 1
  13check_r3 0
  14
  15test_name SLI_3
  16mvi r1, 1
  17sli r3, r1, 31
  18check_r3 0x80000000
  19
  20test_name SLI_4
  21mvi r1, 16
  22sli r3, r1, 31
  23check_r3 0
  24
  25test_name SLI_7
  26mvi r3, 2
  27sli r3, r3, 2
  28check_r3 8
  29
  30end
  31