38 lines · plain
1@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \2@ RUN: | llvm-readobj -r - | FileCheck -check-prefix CHECK-RELOCATIONS %s3 4@ RUN: llvm-mc -triple thumbv7-windows-itanium -filetype obj -o - %s \5@ RUN: | llvm-objdump -d - | FileCheck --check-prefix=CHECK-ENCODING %s6 7 .syntax unified8 .thumb9 .text10 11 .def truncation12 .scl 313 .type 3214 .endef15 .align 216 .thumb_func17truncation:18 movw r0, :lower16:.Lerange19 movt r0, :upper16:.Lerange20 bx lr21 22 .section .rdata,"rd"23.Lbuffer:24 .zero 6553625.Lerange:26 .asciz "-erange"27 28@ CHECK-RELOCATIONS: Relocations [29@ CHECK-RELOCATIONS: .text {30@ CHECK-RELOCATIONS: 0x0 IMAGE_REL_ARM_MOV32T .rdata31@ CHECK-RELOCATIONS-NOT: 0x4 IMAGE_REL_ARM_MOV32T .rdata32@ CHECK-RELOCATIONS: }33@ CHECK-RELOCATIONS: ]34 35@ CHECK-ENCODING: 0: f240 000036@ CHECK-ENCODING-NEXT: 4: f2c0 000137 38