From ea83f85da0eb2f76566d79df7d8a66715e655d64 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 llvm-svn: 316828 --- llvm/test/CodeGen/X86/fast-isel-constpool.ll | 31 +++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/llvm/test/CodeGen/X86/fast-isel-constpool.ll b/llvm/test/CodeGen/X86/fast-isel-constpool.ll index 4e6f7c0f9e8e..3026bba1573a 100644 --- a/llvm/test/CodeGen/X86/fast-isel-constpool.ll +++ b/llvm/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 }