[llvm] r316828 - [X86] Use update_llc_test_checks.py to regenerate fast-isel-constpool.ll
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 27 23:31:46 PDT 2017
Author: ctopper
Date: Fri Oct 27 23:31:46 2017
New Revision: 316828
URL: http://llvm.org/viewvc/llvm-project?rev=316828&view=rev
Log:
[X86] Use update_llc_test_checks.py to regenerate fast-isel-constpool.ll
Modified:
llvm/trunk/test/CodeGen/X86/fast-isel-constpool.ll
Modified: llvm/trunk/test/CodeGen/X86/fast-isel-constpool.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel-constpool.ll?rev=316828&r1=316827&r2=316828&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel-constpool.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fast-isel-constpool.ll Fri Oct 27 23:31:46 2017
@@ -1,23 +1,38 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=x86_64-apple-darwin -fast-isel -code-model=small < %s | FileCheck %s
; RUN: llc -mtriple=x86_64-apple-darwin -fast-isel -code-model=large < %s | FileCheck %s --check-prefix=LARGE
; Make sure fast isel uses rip-relative addressing for the small code model.
define float @constpool_float(float %x) {
-; CHECK-LABEL: constpool_float
-; CHECK: LCPI0_0(%rip)
+; CHECK-LABEL: constpool_float:
+; CHECK: ## BB#0:
+; CHECK-NEXT: movss {{.*#+}} xmm1 = mem[0],zero,zero,zero
+; CHECK-NEXT: addss %xmm1, %xmm0
+; CHECK-NEXT: retq
+;
+; LARGE-LABEL: constpool_float:
+; LARGE: ## BB#0:
+; LARGE-NEXT: movabsq $LCPI0_0, %rax
+; LARGE-NEXT: addss (%rax), %xmm0
+; LARGE-NEXT: retq
-; LARGE-LABEL: constpool_float
-; LARGE: movabsq $LCPI0_0, %rax
%1 = fadd float %x, 16.50e+01
ret float %1
}
define double @constpool_double(double %x) nounwind {
-; CHECK-LABEL: constpool_double
-; CHECK: LCPI1_0(%rip)
+; CHECK-LABEL: constpool_double:
+; CHECK: ## BB#0:
+; CHECK-NEXT: movsd {{.*#+}} xmm1 = mem[0],zero
+; CHECK-NEXT: addsd %xmm1, %xmm0
+; CHECK-NEXT: retq
+;
+; LARGE-LABEL: constpool_double:
+; LARGE: ## BB#0:
+; LARGE-NEXT: movabsq $LCPI1_0, %rax
+; LARGE-NEXT: addsd (%rax), %xmm0
+; LARGE-NEXT: retq
-; LARGE-LABEL: constpool_double
-; LARGE: movabsq $LCPI1_0, %rax
%1 = fadd double %x, 8.500000e-01
ret double %1
}
More information about the llvm-commits
mailing list