qemu/tests/tcg/lm32/test_sb.S
<<
>>
Prefs
   1.include "macros.inc"
   2
   3start
   4
   5test_name SB_1
   6load r1 data
   7load r2 0xf0f1f2aa
   8sb (r1+0), r2
   9check_mem data 0xaa000000
  10
  11test_name SB_2
  12load r2 0xf0f1f2bb
  13sb (r1+1), r2
  14check_mem data 0xaabb0000
  15
  16test_name SB_3
  17load r2 0xf0f1f2cc
  18sb (r1+-1), r2
  19check_mem data0 0x000000cc
  20
  21end
  22
  23.data
  24        .align 4
  25data0:
  26        .byte 0, 0, 0, 0
  27data:
  28        .byte 0, 0, 0, 0
  29data1:
  30        .byte 0, 0, 0, 0
  31