From f907e19b5eafa7349cc848951778a576a4b5f141 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 20 Jul 2018 13:58:57 +0000 Subject: [PATCH] Regenerate partial vector fold test. NFCI. llvm-svn: 337551 --- llvm/test/CodeGen/X86/fold-load-vec.ll | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/llvm/test/CodeGen/X86/fold-load-vec.ll b/llvm/test/CodeGen/X86/fold-load-vec.ll index db28156..5523846 100644 --- a/llvm/test/CodeGen/X86/fold-load-vec.ll +++ b/llvm/test/CodeGen/X86/fold-load-vec.ll @@ -1,12 +1,26 @@ -; RUN: llc < %s -mtriple=x86_64-- -mcpu=corei7 -mattr=+sse4.1 | FileCheck %s +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=x86_64-unknown -mcpu=corei7 -mattr=+sse4.1 | FileCheck %s ; rdar://12721174 ; We should not fold movss into pshufd since pshufd expects m128 while movss ; loads from m32. define void @sample_test(<4 x float>* %source, <2 x float>* %dest) nounwind { -; CHECK: sample_test -; CHECK-NOT: movaps -; CHECK: insertps +; CHECK-LABEL: sample_test: +; CHECK: # %bb.0: # %entry +; CHECK-NEXT: subq $24, %rsp +; CHECK-NEXT: movq %rdi, {{[0-9]+}}(%rsp) +; CHECK-NEXT: movq %rsi, {{[0-9]+}}(%rsp) +; CHECK-NEXT: xorps %xmm0, %xmm0 +; CHECK-NEXT: movlps %xmm0, (%rsp) +; CHECK-NEXT: insertps {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[2,3] +; CHECK-NEXT: movlps %xmm0, (%rsp) +; CHECK-NEXT: movlps %xmm0, (%rsi) +; CHECK-NEXT: movq {{[0-9]+}}(%rsp), %rax +; CHECK-NEXT: movq {{.*#+}} xmm0 = mem[0],zero +; CHECK-NEXT: pshufd {{.*#+}} xmm1 = xmm0[1,1,3,3] +; CHECK-NEXT: callq ext +; CHECK-NEXT: addq $24, %rsp +; CHECK-NEXT: retq entry: %source.addr = alloca <4 x float>*, align 8 %dest.addr = alloca <2 x float>*, align 8 -- 2.7.4