1@ Test file for ARM/GAS -- ldr reg, =... expressions. 2 3.text 4.align 5foo: 6 ldr r0, =0 7 ldr r0, =0xff000000 8 ldr r0, =-1 9 ldr r0, =0x0fff0000 10 .pool 11 12 ldr r14, =0 13 ldr r14, =0x00ff0000 14 ldr r14, =0xff00ffff 15 ldr r14, =0x00fff000 16 .pool 17 18 ldreq r0, =0 19 ldreq r0, =0x0000ff00 20 ldreq r0, =0xffff00ff 21 ldreq r0, =0x000fff00 22 .pool 23 24 ldrmi r11, =0 25 ldrmi r11, =0x000000ff 26 ldrmi r11, =0xffffff00 27 ldrmi r11, =0x0000fff0 28 .pool 29 30 # test symbol literal support. 31 .macro ldrs const 32 .irp regindex, 0, 3, 8, 11, 14 33 ldr r\regindex, \const 34 .endr 35 .endm 36 37 ldrs "=ext_symbol" 38 ldrs "=ext_symbol + 0x1000" 39 .pool 40