[llvm] r177280 - Initially forgotten-to-svn-add test case for r177279.

David Tweed david.tweed at arm.com
Mon Mar 18 05:07:24 PDT 2013


Author: davidtweed
Date: Mon Mar 18 07:07:24 2013
New Revision: 177280

URL: http://llvm.org/viewvc/llvm-project?rev=177280&view=rev
Log:
Initially forgotten-to-svn-add test case for r177279.

Added:
    llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll

Added: llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll?rev=177280&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll (added)
+++ llvm/trunk/test/Transforms/EarlyCSE/floatingpoint.ll Mon Mar 18 07:07:24 2013
@@ -0,0 +1,14 @@
+; RUN: opt < %s -S -early-cse | FileCheck %s
+
+; Ensure we don't simplify away additions vectors of +0.0's (same as scalars).
+define <4 x float> @fV( <4 x float> %a) {
+       ; CHECK: %b = fadd <4 x float> %a, zeroinitializer
+       %b = fadd  <4 x float> %a, <float 0.0,float 0.0,float 0.0,float 0.0>
+       ret <4 x float> %b
+}
+
+define <4 x float> @fW( <4 x float> %a) {
+       ; CHECK: ret <4 x float> %a
+       %b = fadd  <4 x float> %a, <float -0.0,float -0.0,float -0.0,float -0.0>
+       ret <4 x float> %b
+}





More information about the llvm-commits mailing list