summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit9a511c07e4efdb88ec508152711368647b3c3646 (patch)
tree20f0e7daa88579647013fc8478b20786b6381750 /llvm/test/Bitcode
parentb02244969d16f79329e6989e9f23cbff8168927a (diff)
downloadbcm5719-llvm-9a511c07e4efdb88ec508152711368647b3c3646.tar.gz
bcm5719-llvm-9a511c07e4efdb88ec508152711368647b3c3646.zip
Replace the arm.neon.vmovls and vmovlu intrinsics with vector sign-extend and
zero-extend operations. llvm-svn: 111614
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/neon-intrinsics.ll29
-rw-r--r--llvm/test/Bitcode/neon-intrinsics.ll.bcbin0 -> 820 bytes
2 files changed, 29 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/neon-intrinsics.ll b/llvm/test/Bitcode/neon-intrinsics.ll
new file mode 100644
index 00000000000..73ca7075d80
--- /dev/null
+++ b/llvm/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/llvm/test/Bitcode/neon-intrinsics.ll.bc b/llvm/test/Bitcode/neon-intrinsics.ll.bc
new file mode 100644
index 00000000000..93eeabc8223
--- /dev/null
+++ b/llvm/test/Bitcode/neon-intrinsics.ll.bc
Binary files differ
OpenPOWER on IntegriCloud