brintos

brintos / llvm-project-archived public Read only

0
0
Text · 485 B · 38d6d4c Raw
19 lines · plain
1; RUN: llc  -mtriple=armv7-pc-linux-gnueabi -relocation-model=pic < %s | FileCheck %s2 3@foo = dso_local global i32 424 5define dso_local ptr @get_foo() {6  ret ptr @foo7}8 9; Test that we only use one load. Even that is only needed because there10; doesn't seem to be pc relative relocations for movw movt.11; CHECK:      ldr     r0, .LCPI0_012; CHECK-NEXT: .L{{.*}}:13; CHECK-NEXT: add     r0, pc, r014; CHECK-NEXT: bx      lr15 16!llvm.module.flags = !{!0}17 18!0 = !{i32 1, !"PIE Level", i32 2}19