aboutsummaryrefslogtreecommitdiffstats
path: root/test/Bitcode
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-08-20 04:54:02 +0000
committerBob Wilson <bob.wilson@apple.com>2010-08-20 04:54:02 +0000
commitb31a11b466281b7e01cfde007b2041eefa2341e4 (patch)
tree97ed9d7695da68596c898a0d552ee737ba678da2 /test/Bitcode
parent2df9504fec1ddf198321c7fe8c968154b4edbff3 (diff)
downloadexternal_llvm-b31a11b466281b7e01cfde007b2041eefa2341e4.zip
external_llvm-b31a11b466281b7e01cfde007b2041eefa2341e4.tar.gz
external_llvm-b31a11b466281b7e01cfde007b2041eefa2341e4.tar.bz2
Replace the arm.neon.vmovls and vmovlu intrinsics with vector sign-extend and
zero-extend operations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/neon-intrinsics.ll29
-rw-r--r--test/Bitcode/neon-intrinsics.ll.bcbin0 -> 820 bytes
2 files changed, 29 insertions, 0 deletions
diff --git a/test/Bitcode/neon-intrinsics.ll b/test/Bitcode/neon-intrinsics.ll
new file mode 100644
index 0000000..73ca707
--- /dev/null
+++ b/test/Bitcode/neon-intrinsics.ll
@@ -0,0 +1,29 @@
+; RUN: llvm-dis < %s.bc | FileCheck %s
+
+; vmovls should be auto-upgraded to sext
+
+; CHECK: vmovls8
+; CHECK-NOT: arm.neon.vmovls.v8i16
+; CHECK: sext <8 x i8>
+
+; CHECK: vmovls16
+; CHECK-NOT: arm.neon.vmovls.v4i32
+; CHECK: sext <4 x i16>
+
+; CHECK: vmovls32
+; CHECK-NOT: arm.neon.vmovls.v2i64
+; CHECK: sext <2 x i32>
+
+; vmovlu should be auto-upgraded to zext
+
+; CHECK: vmovlu8
+; CHECK-NOT: arm.neon.vmovlu.v8i16
+; CHECK: zext <8 x i8>
+
+; CHECK: vmovlu16
+; CHECK-NOT: arm.neon.vmovlu.v4i32
+; CHECK: zext <4 x i16>
+
+; CHECK: vmovlu32
+; CHECK-NOT: arm.neon.vmovlu.v2i64
+; CHECK: zext <2 x i32>
diff --git a/test/Bitcode/neon-intrinsics.ll.bc b/test/Bitcode/neon-intrinsics.ll.bc
new file mode 100644
index 0000000..93eeabc
--- /dev/null
+++ b/test/Bitcode/neon-intrinsics.ll.bc
Binary files differ