diff options
author | Dan Gohman <gohman@apple.com> | 2011-04-27 20:44:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-04-27 20:44:28 +0000 |
commit | 1d7e818a386610da70d56809ea67eb81e0f9c84b (patch) | |
tree | cf21e495814f7ec07c9a96d85bfccf1a3dbfb810 /test/Analysis | |
parent | 0be77dff1147488814b8eea6ec8619f56e3d9f5e (diff) | |
download | external_llvm-1d7e818a386610da70d56809ea67eb81e0f9c84b.zip external_llvm-1d7e818a386610da70d56809ea67eb81e0f9c84b.tar.gz external_llvm-1d7e818a386610da70d56809ea67eb81e0f9c84b.tar.bz2 |
Teach BasicAA about arm.neon.vld1 and vst1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r-- | test/Analysis/BasicAA/intrinsics.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Analysis/BasicAA/intrinsics.ll b/test/Analysis/BasicAA/intrinsics.ll index bec878a..59725cf 100644 --- a/test/Analysis/BasicAA/intrinsics.ll +++ b/test/Analysis/BasicAA/intrinsics.ll @@ -19,5 +19,21 @@ entry: ret <8 x i16> %c } +; CHECK: define <8 x i16> @test1(i8* %p, <8 x i16> %y) { +; CHECK-NEXT: entry: +; CHECK-NEXT: %q = getelementptr i8* %p, i64 16 +; CHECK-NEXT: %a = call <8 x i16> @llvm.arm.neon.vld1.v8i16(i8* %p, i32 16) nounwind +; CHECK-NEXT: call void @llvm.arm.neon.vst1.v8i16(i8* %q, <8 x i16> %y, i32 16) +; CHECK-NEXT: %c = add <8 x i16> %a, %a +define <8 x i16> @test1(i8* %p, <8 x i16> %y) { +entry: + %q = getelementptr i8* %p, i64 16 + %a = call <8 x i16> @llvm.arm.neon.vld1.v8i16(i8* %p, i32 16) nounwind + call void @llvm.arm.neon.vst1.v8i16(i8* %q, <8 x i16> %y, i32 16) + %b = call <8 x i16> @llvm.arm.neon.vld1.v8i16(i8* %p, i32 16) nounwind + %c = add <8 x i16> %a, %b + ret <8 x i16> %c +} + declare <8 x i16> @llvm.arm.neon.vld1.v8i16(i8*, i32) nounwind readonly declare void @llvm.arm.neon.vst1.v8i16(i8*, <8 x i16>, i32) nounwind |