[binutils, ARM, 5/16] BF insns infrastructure with new global reloc R_ARM_THM_BF16
[binutils-gdb.git] / sim / testsuite / d10v-elf / t-slae.s
blob6d8422d0f9f89535d1850ebc6a92c697e25ec206
1 .include "t-macros.i"
3 start
5 test_slae_1:
6 loadpsw2 PSW_ST|PSW_FX
7 loadacc2 a0 0x00 0x0AFF 0xF000
8 ldi r0, 4
9 slae a0, r0
10 checkacc2 1 a0 0x00 0x7FFF 0xFFFF
12 test_slae_2:
13 loadpsw2 PSW_ST|PSW_FX
14 loadacc2 a0 0xFF 0xF700 0x1000
15 ldi r0, 4
16 slae a0, r0
17 checkacc2 2 a0 0xFF 0x8000 0x0000
19 test_slae_3:
20 loadpsw2 PSW_ST|PSW_FX
21 loadacc2 a0 0x00 0x0010 0xA000
22 ldi r0, 4
23 slae a0, r0
24 checkacc2 3 a0 0x00 0x010A 0x0000
26 test_slae_4:
27 loadpsw2 0
28 loadacc2 a0 0x00 0x0010 0xA000
29 ldi r0, 4
30 slae a0, r0
31 checkacc2 4 a0 0x00 0x010A 0x0000
33 test_slae_5:
34 loadacc2 a0 0x00 0x0010 0xA000
35 ldi r0, -4
36 slae a0, r0
37 checkacc2 4 a0 0x00 0x0001 0x0A00
39 exit0