From 0cced31cf0a20913a919f08a7a12cbc45f1d43ea Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 28 Oct 2017 06:31:46 +0000 Subject: [PATCH] [X86] Use update_llc_test_checks.py to regenerate fast-isel-constpool.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316828 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/fast-isel-constpool.ll | 31 ++++++++++++++++++------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/test/CodeGen/X86/fast-isel-constpool.ll b/test/CodeGen/X86/fast-isel-constpool.ll index 4e6f7c0f9e8..3026bba1573 100644 --- a/test/CodeGen/X86/fast-isel-constpool.ll +++ b/test/CodeGen/X86/fast-isel-constpool.ll @@ -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 } -- 2.40.0