1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/test/CodeGen/Mips/cconv/pr33883.ll
Simon Dardis 79d6aa222a [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
2017-07-31 14:06:58 +00:00

13 lines
336 B
LLVM

; 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>)