From 956342b2104c734d4d6b758a58a799ccd3beb63d Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 9 Sep 2012 22:58:45 +0000 Subject: Teach DAG combiner to constant fold fneg of a BUILD_VECTOR of constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163483 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/avx-basic.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/CodeGen/X86/avx-basic.ll') diff --git a/test/CodeGen/X86/avx-basic.ll b/test/CodeGen/X86/avx-basic.ll index 8ad0fa8..95854c7 100644 --- a/test/CodeGen/X86/avx-basic.ll +++ b/test/CodeGen/X86/avx-basic.ll @@ -109,8 +109,8 @@ allocas: ; rdar://10566486 ; CHECK: fneg ; CHECK: vxorps -define <16 x float> @fneg(<16 x float> addrspace(1)* nocapture %out) nounwind { - %1 = fsub <16 x float> , +define <16 x float> @fneg(<16 x float> %a) nounwind { + %1 = fsub <16 x float> , %a ret <16 x float> %1 } -- cgit v1.1