aboutsummaryrefslogtreecommitdiffstats
path: root/test/Bitcode/neon-intrinsics.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-08-30 20:02:30 +0000
committerBob Wilson <bob.wilson@apple.com>2010-08-30 20:02:30 +0000
commit973a074345add36c046c0f0bfea0156a532ab479 (patch)
tree3f3ffb69284b82d87c7df80b420d5b52a8bb6672 /test/Bitcode/neon-intrinsics.ll
parent663e339e208a9d54d3731618cb484e8a07c33335 (diff)
downloadexternal_llvm-973a074345add36c046c0f0bfea0156a532ab479.zip
external_llvm-973a074345add36c046c0f0bfea0156a532ab479.tar.gz
external_llvm-973a074345add36c046c0f0bfea0156a532ab479.tar.bz2
Remove NEON vmovn intrinsic, replacing it with vector truncate operations.
Auto-upgrade the old intrinsic and update tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode/neon-intrinsics.ll')
-rw-r--r--test/Bitcode/neon-intrinsics.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Bitcode/neon-intrinsics.ll b/test/Bitcode/neon-intrinsics.ll
index d6d03d0..eafa94b 100644
--- a/test/Bitcode/neon-intrinsics.ll
+++ b/test/Bitcode/neon-intrinsics.ll
@@ -76,6 +76,20 @@
; CHECK: zext <4 x i16>
; CHECK-NEXT: sub <4 x i32>
+; vmovn should be auto-upgraded to trunc
+
+; CHECK: vmovni16
+; CHECK-NOT: arm.neon.vmovn.v8i8
+; CHECK: trunc <8 x i16>
+
+; CHECK: vmovni32
+; CHECK-NOT: arm.neon.vmovn.v4i16
+; CHECK: trunc <4 x i32>
+
+; CHECK: vmovni64
+; CHECK-NOT: arm.neon.vmovn.v2i32
+; CHECK: trunc <2 x i64>
+
; vld* and vst* intrinsic calls need an alignment argument (defaulted to 1)
; CHECK: vld1i8