From: Sanjay Patel Date: Fri, 14 Dec 2018 18:44:16 +0000 (+0000) Subject: [x86] make tests immune to scalarization improvements; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dac6042d84436515dcbfd227570415dcebc142cc;p=llvm [x86] make tests immune to scalarization improvements; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349176 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/stack-folding-fp-avx1.ll b/test/CodeGen/X86/stack-folding-fp-avx1.ll index 8bcebd20dbd..0d903efdbe2 100644 --- a/test/CodeGen/X86/stack-folding-fp-avx1.ll +++ b/test/CodeGen/X86/stack-folding-fp-avx1.ll @@ -881,12 +881,12 @@ define <4 x float> @stack_fold_extractf128(<8 x float> %a0, <8 x float> %a1) { ret <4 x float> %1 } -define i32 @stack_fold_extractps(<4 x float> %a0) { +define i32 @stack_fold_extractps(<4 x float> %a0, <4 x float> %a1) { ;CHECK-LABEL: stack_fold_extractps ;CHECK: vextractps $1, {{%xmm[0-9][0-9]*}}, {{-?[0-9]*}}(%rsp) {{.*#+}} 4-byte Folded Spill ;CHECK: movl {{-?[0-9]*}}(%rsp), %eax {{.*#+}} 4-byte Reload ; fadd forces execution domain - %1 = fadd <4 x float> %a0, + %1 = fadd <4 x float> %a0, %a1 %2 = extractelement <4 x float> %1, i32 1 %3 = bitcast float %2 to i32 %4 = tail call <2 x i64> asm sideeffect "nop", "=x,~{rax},~{rbx},~{rcx},~{rdx},~{rsi},~{rdi},~{rbp},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15}"() diff --git a/test/CodeGen/X86/stack-folding-fp-sse42.ll b/test/CodeGen/X86/stack-folding-fp-sse42.ll index a60e85df1ab..3604aaa35fc 100644 --- a/test/CodeGen/X86/stack-folding-fp-sse42.ll +++ b/test/CodeGen/X86/stack-folding-fp-sse42.ll @@ -624,12 +624,12 @@ define <4 x float> @stack_fold_dpps(<4 x float> %a0, <4 x float> %a1) { } declare <4 x float> @llvm.x86.sse41.dpps(<4 x float>, <4 x float>, i8) nounwind readnone -define i32 @stack_fold_extractps(<4 x float> %a0) { +define i32 @stack_fold_extractps(<4 x float> %a0, <4 x float> %a1) { ;CHECK-LABEL: stack_fold_extractps ;CHECK: extractps $1, {{%xmm[0-9][0-9]*}}, {{-?[0-9]*}}(%rsp) {{.*#+}} 4-byte Folded Spill ;CHECK: movl {{-?[0-9]*}}(%rsp), %eax {{.*#+}} 4-byte Reload ; fadd forces execution domain - %1 = fadd <4 x float> %a0, + %1 = fadd <4 x float> %a0, %a1 %2 = extractelement <4 x float> %1, i32 1 %3 = bitcast float %2 to i32 %4 = tail call <2 x i64> asm sideeffect "nop", "=x,~{rax},~{rbx},~{rcx},~{rdx},~{rsi},~{rdi},~{rbp},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15}"()