summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/cconv
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@imgtec.com>2017-07-31 14:06:58 +0000
committerSimon Dardis <simon.dardis@imgtec.com>2017-07-31 14:06:58 +0000
commit8930b4a0496763df8caa84ea6fe119dc72152e84 (patch)
tree281d670acb5f5ce9b3725e5e954b23d821c36474 /llvm/test/CodeGen/Mips/cconv
parent8fc6cdfb1cbd3b25c14594077aca4f41e982de20 (diff)
downloadbcm5719-llvm-8930b4a0496763df8caa84ea6fe119dc72152e84.tar.gz
bcm5719-llvm-8930b4a0496763df8caa84ea6fe119dc72152e84.zip
[SelectionDAG][mips] Fix PR33883
PR33883 shows that calls to intrinsic functions should not have their vector arguments or returns subject to ABI changes required by the target. This resolves PR33883. Thanks to Alex Crichton for reporting the issue! Reviewers: zoran.jovanovic, atanasyan Differential Revision: https://reviews.llvm.org/D35765 llvm-svn: 309561
Diffstat (limited to 'llvm/test/CodeGen/Mips/cconv')
-rw-r--r--llvm/test/CodeGen/Mips/cconv/pr33883.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/cconv/pr33883.ll b/llvm/test/CodeGen/Mips/cconv/pr33883.ll
new file mode 100644
index 00000000000..54d7286ab8f
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/cconv/pr33883.ll
@@ -0,0 +1,12 @@
+; RUN: llc -march=mips -mcpu=mips32 < %s -o /dev/null
+
+; Test that calls to vector intrinsics do not crash SelectionDAGBuilder.
+
+define <4 x float> @_ZN4simd3foo17hebb969c5fb39a194E(<4 x float>) {
+start:
+ %1 = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %0)
+
+ ret <4 x float> %1
+}
+
+declare <4 x float> @llvm.sqrt.v4f32(<4 x float>)
OpenPOWER on IntegriCloud