summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/vec_zero.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PowerPC/vec_zero.ll')
-rw-r--r--test/CodeGen/PowerPC/vec_zero.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/vec_zero.ll b/test/CodeGen/PowerPC/vec_zero.ll
new file mode 100644
index 0000000000000..8d06a7d94dac1
--- /dev/null
+++ b/test/CodeGen/PowerPC/vec_zero.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vxor
+
+define void @foo(<4 x float>* %P) {
+ %T = load <4 x float>* %P ; <<4 x float>> [#uses=1]
+ %S = add <4 x float> zeroinitializer, %T ; <<4 x float>> [#uses=1]
+ store <4 x float> %S, <4 x float>* %P
+ ret void
+}
+