binutils-gdb/ld/testsuite/ld-m68hc11/movw.s
Sean Keys 178df8af8d 2012-11-07 James Murray <jsm@jsm-net.demon.co.uk>
* ld-m68hc11/movw.d: New test for 16bit relocate.
	* ld-m68hc11/movw.s: Source for test.
2012-11-07 20:35:02 +00:00

14 lines
293 B
ArmAsm

;;; Bug. movw used R_M68HC12_16B which was 1 byte misaligned.
.sect .text
.globl _start
_start:
start:
movw gp_max_on,x, gp_clk,x
movw 0x22,sp, gp_clk,y
movw gp_clk,x, 0x12,sp
movw 0x1001,x, 0x2002,y
movw small_off,sp, gp_max_on,y
tfr x,y
rts