summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/vst3.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-04-09 15:24:12 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-04-09 15:24:12 +0000
commita17303598934c78afb04f623a85cd99ec0261989 (patch)
tree30d9be99ad0165ce5977a6d50dc2a34d7855f69e /test/CodeGen/ARM/vst3.ll
parent886b940a1d6fedd28b84bd3fe06963bfd1451382 (diff)
downloadllvm-a17303598934c78afb04f623a85cd99ec0261989.tar.gz
llvm-a17303598934c78afb04f623a85cd99ec0261989.tar.bz2
llvm-a17303598934c78afb04f623a85cd99ec0261989.tar.xz
Merging r199369:
------------------------------------------------------------------------ r199369 | jiangning.liu | 2014-01-16 04:16:13 -0500 (Thu, 16 Jan 2014) | 2 lines For ARM, fix assertuib failures for some ld/st 3/4 instruction with wirteback. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@205901 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/vst3.ll')
-rw-r--r--test/CodeGen/ARM/vst3.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/vst3.ll b/test/CodeGen/ARM/vst3.ll
index 91eb7fce2b..65625de345 100644
--- a/test/CodeGen/ARM/vst3.ll
+++ b/test/CodeGen/ARM/vst3.ll
@@ -61,6 +61,18 @@ define void @vst3i64(i64* %A, <1 x i64>* %B) nounwind {
ret void
}
+define void @vst3i64_update(i64** %ptr, <1 x i64>* %B) nounwind {
+;CHECK-LABEL: vst3i64_update
+;CHECK: vst1.64 {d{{.*}}, d{{.*}}, d{{.*}}}, [r{{.*}}]!
+ %A = load i64** %ptr
+ %tmp0 = bitcast i64* %A to i8*
+ %tmp1 = load <1 x i64>* %B
+ call void @llvm.arm.neon.vst3.v1i64(i8* %tmp0, <1 x i64> %tmp1, <1 x i64> %tmp1, <1 x i64> %tmp1, i32 1)
+ %tmp2 = getelementptr i64* %A, i32 3
+ store i64* %tmp2, i64** %ptr
+ ret void
+}
+
define void @vst3Qi8(i8* %A, <16 x i8>* %B) nounwind {
;CHECK-LABEL: vst3Qi8:
;Check the alignment value. Max for this instruction is 64 bits: