aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-08-18 01:45:52 +0000
committerBob Wilson <bob.wilson@apple.com>2010-08-18 01:45:52 +0000
commit2003bcfbd243716e5599f65705b515c2a229c7d3 (patch)
tree4be751c6cac06cc8b698fdc32e82d11a3e9ea871 /test/CodeGen
parentf9d116376971ed8771c34234b612202654632370 (diff)
downloadexternal_llvm-2003bcfbd243716e5599f65705b515c2a229c7d3.zip
external_llvm-2003bcfbd243716e5599f65705b515c2a229c7d3.tar.gz
external_llvm-2003bcfbd243716e5599f65705b515c2a229c7d3.tar.bz2
Expand ZERO_EXTEND operations for NEON vector types.
Testcase from Nick Lewycky. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/neon-ops.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/neon-ops.ll b/test/CodeGen/ARM/neon-ops.ll
new file mode 100644
index 0000000..d7e893f
--- /dev/null
+++ b/test/CodeGen/ARM/neon-ops.ll
@@ -0,0 +1,7 @@
+; RUN: llc -march=arm -mattr=+neon -O2 -o /dev/null
+
+; This used to crash.
+define <4 x i32> @test1(<4 x i16> %a) {
+ %A = zext <4 x i16> %a to <4 x i32>
+ ret <4 x i32> %A
+}