aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/adrp-relocation.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/adrp-relocation.ll')
-rw-r--r--test/CodeGen/AArch64/adrp-relocation.ll22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/CodeGen/AArch64/adrp-relocation.ll b/test/CodeGen/AArch64/adrp-relocation.ll
index 3eeb53e329..c33b442624 100644
--- a/test/CodeGen/AArch64/adrp-relocation.ll
+++ b/test/CodeGen/AArch64/adrp-relocation.ll
@@ -1,16 +1,16 @@
; RUN: llc -mtriple=aarch64-none-linux-gnu -verify-machineinstrs -filetype=obj < %s | elf-dump | FileCheck %s
-define fp128 @testfn() nounwind {
+define i64 @testfn() nounwind {
entry:
- ret fp128 0xL00000000000000004004500000000000
+ ret i64 0
}
-define fp128 @foo() nounwind {
+define i64 @foo() nounwind {
entry:
- %bar = alloca fp128 ()*, align 8
- store fp128 ()* @testfn, fp128 ()** %bar, align 8
- %call = call fp128 @testfn()
- ret fp128 %call
+ %bar = alloca i64 ()*, align 8
+ store i64 ()* @testfn, i64 ()** %bar, align 8
+ %call = call i64 @testfn()
+ ret i64 %call
}
; The above should produce an ADRP/ADD pair to calculate the address of
@@ -22,14 +22,14 @@ entry:
; CHECK: .rela.text
; CHECK: # Relocation 0
-; CHECK-NEXT: (('r_offset', 0x0000000000000028)
-; CHECK-NEXT: ('r_sym', 0x00000009)
+; CHECK-NEXT: (('r_offset', 0x0000000000000010)
+; CHECK-NEXT: ('r_sym', 0x00000007)
; CHECK-NEXT: ('r_type', 0x00000113)
; CHECK-NEXT: ('r_addend', 0x0000000000000000)
; CHECK-NEXT: ),
; CHECK-NEXT: Relocation 1
-; CHECK-NEXT: (('r_offset', 0x000000000000002c)
-; CHECK-NEXT: ('r_sym', 0x00000009)
+; CHECK-NEXT: (('r_offset', 0x0000000000000014)
+; CHECK-NEXT: ('r_sym', 0x00000007)
; CHECK-NEXT: ('r_type', 0x00000115)
; CHECK-NEXT: ('r_addend', 0x0000000000000000)
; CHECK-NEXT: ),