diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
| commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
| tree | 4def12e759965de927d963ac65840d663ef9d1ea /test/CodeGen/AArch64/pie.ll | |
| parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/AArch64/pie.ll')
| -rw-r--r-- | test/CodeGen/AArch64/pie.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/pie.ll b/test/CodeGen/AArch64/pie.ll new file mode 100644 index 000000000000..5cd27a8761cc --- /dev/null +++ b/test/CodeGen/AArch64/pie.ll @@ -0,0 +1,14 @@ +; RUN: llc -mtriple aarch64-pc-linux -relocation-model=pic < %s | FileCheck %s + +@g1 = global i32 42 + +define i32* @get_g1() { +; CHECK: get_g1: +; CHECK: adrp x0, g1 +; CHECK-NEXT: add x0, x0, :lo12:g1 + ret i32* @g1 +} + +!llvm.module.flags = !{!0} + +!0 = !{i32 1, !"PIE Level", i32 2} |
