summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-constpool.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-constpool.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-constpool.ll24
1 files changed, 20 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-constpool.ll b/llvm/test/CodeGen/X86/fast-isel-constpool.ll
index 4b8f387571e..4b6092c5bf2 100644
--- a/llvm/test/CodeGen/X86/fast-isel-constpool.ll
+++ b/llvm/test/CodeGen/X86/fast-isel-constpool.ll
@@ -16,7 +16,11 @@ define float @constpool_float(float %x) {
;
; LARGE-LABEL: constpool_float:
; LARGE: ## %bb.0:
-; LARGE-NEXT: movabsq $LCPI0_0, %rax
+; LARGE-NEXT: Ltmp0:
+; LARGE-NEXT: leaq {{.*}}(%rip), %rax
+; LARGE-NEXT: movabsq $__GLOBAL_OFFSET_TABLE_-Ltmp0, %rcx
+; LARGE-NEXT: addq %rcx, %rax
+; LARGE-NEXT: movabsq $LCPI0_0@GOTOFF, %rax
; LARGE-NEXT: addss (%rax), %xmm0
; LARGE-NEXT: retq
;
@@ -28,7 +32,11 @@ define float @constpool_float(float %x) {
;
; LARGE_AVX-LABEL: constpool_float:
; LARGE_AVX: ## %bb.0:
-; LARGE_AVX-NEXT: movabsq $LCPI0_0, %rax
+; LARGE_AVX-NEXT: Ltmp0:
+; LARGE_AVX-NEXT: leaq {{.*}}(%rip), %rax
+; LARGE_AVX-NEXT: movabsq $__GLOBAL_OFFSET_TABLE_-Ltmp0, %rcx
+; LARGE_AVX-NEXT: addq %rcx, %rax
+; LARGE_AVX-NEXT: movabsq $LCPI0_0@GOTOFF, %rax
; LARGE_AVX-NEXT: vaddss (%rax), %xmm0, %xmm0
; LARGE_AVX-NEXT: retq
@@ -45,7 +53,11 @@ define double @constpool_double(double %x) nounwind {
;
; LARGE-LABEL: constpool_double:
; LARGE: ## %bb.0:
-; LARGE-NEXT: movabsq $LCPI1_0, %rax
+; LARGE-NEXT: Ltmp1:
+; LARGE-NEXT: leaq {{.*}}(%rip), %rax
+; LARGE-NEXT: movabsq $__GLOBAL_OFFSET_TABLE_-Ltmp1, %rcx
+; LARGE-NEXT: addq %rcx, %rax
+; LARGE-NEXT: movabsq $LCPI1_0@GOTOFF, %rax
; LARGE-NEXT: addsd (%rax), %xmm0
; LARGE-NEXT: retq
;
@@ -57,7 +69,11 @@ define double @constpool_double(double %x) nounwind {
;
; LARGE_AVX-LABEL: constpool_double:
; LARGE_AVX: ## %bb.0:
-; LARGE_AVX-NEXT: movabsq $LCPI1_0, %rax
+; LARGE_AVX-NEXT: Ltmp1:
+; LARGE_AVX-NEXT: leaq {{.*}}(%rip), %rax
+; LARGE_AVX-NEXT: movabsq $__GLOBAL_OFFSET_TABLE_-Ltmp1, %rcx
+; LARGE_AVX-NEXT: addq %rcx, %rax
+; LARGE_AVX-NEXT: movabsq $LCPI1_0@GOTOFF, %rax
; LARGE_AVX-NEXT: vaddsd (%rax), %xmm0, %xmm0
; LARGE_AVX-NEXT: retq
OpenPOWER on IntegriCloud