brintos

brintos / llvm-project-archived public Read only

0
0
Text · 849 B · 5d3947e Raw
28 lines · plain
1// RUN: llvm-mc -triple=armv7-linux-gnueabi  \2// RUN:    -mcpu=cortex-a8 -mattr=-neon -mattr=+vfp2   \3// RUN:    -filetype=obj %s -o - | \4// RUN:   llvm-readobj -r - | FileCheck -check-prefix=OBJ %s5 6// Ensure no regression on ARM/gcc compatibility for7// emitting explicit symbol relocs for nonexternal symbols8// versus section symbol relocs (with offset) -9//10// Default llvm behavior is to emit as section symbol relocs nearly11// everything that is not an undefined external. Unfortunately, this12// diverges from what codesourcery ARM/gcc does!13//14// Verifies that internal constants appear as explict symbol relocs15 16	movw	r1, :lower16:vtable17 18 19	.section	.data.rel.ro.local,"aw",%progbits20vtable:21	.long	022 23// OBJ: Relocations [24// OBJ:   Section {{.*}} .rel.text {25// OBJ:     0x{{[0-9,A-F]+}} R_ARM_MOVW_ABS_NC vtable26// OBJ:   }27// OBJ: ]28