23 lines · plain
1; RUN: llvm-mc -triple m68k -filetype=obj --position-independent %s -o - \2; RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELOC %s3; RUN: llvm-mc -triple m68k -show-encoding --position-independent %s -o - \4; RUN: | FileCheck -check-prefix=INSTR %s5 6; RELOC: R_68K_32 dst 0x07; INSTR: move.l dst, %d08move.l dst, %d09 10; Relocating immediate values11 12; RELOC: R_68K_8 str8 0x013; INSTR: move.b #str8, (4,%sp)14move.b #str8, (4,%sp)15 16; RELOC: R_68K_16 str16 0x017; INSTR: move.w #str16, (4,%sp)18move.w #str16, (4,%sp)19 20; RELOC: R_68K_32 str32 0x021; INSTR: move.l #str32, (4,%sp)22move.l #str32, (4,%sp)23