diff options
author | David Tweed <david.tweed@arm.com> | 2013-03-18 12:07:24 +0000 |
---|---|---|
committer | David Tweed <david.tweed@arm.com> | 2013-03-18 12:07:24 +0000 |
commit | d505b24277fe912f88cd81ba41ef7dc1a2732ca8 (patch) | |
tree | cc2a2a8d42e701f63237b435da441da5a7f85574 | |
parent | 5493feed251b00413a1978fc13a4a00fb7ec4e9e (diff) | |
download | bcm5719-llvm-d505b24277fe912f88cd81ba41ef7dc1a2732ca8.tar.gz bcm5719-llvm-d505b24277fe912f88cd81ba41ef7dc1a2732ca8.zip |
Initially forgotten-to-svn-add test case for r177279.
llvm-svn: 177280
-rw-r--r-- | llvm/test/Transforms/EarlyCSE/floatingpoint.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Transforms/EarlyCSE/floatingpoint.ll b/llvm/test/Transforms/EarlyCSE/floatingpoint.ll new file mode 100644 index 00000000000..2abecd74b63 --- /dev/null +++ b/llvm/test/Transforms/EarlyCSE/floatingpoint.ll @@ -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 +} |