mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
028bb8efa9
The exit-on-error flag in the ARM test is necessary in order to avoid an unreachable in the DAGTypeLegalizer, when trying to expand a physical register. We can also avoid this situation by introducing a bitcast early on, where the invalid scalar-to-vector conversion is detected. We also add a test for PowerPC, which goes through a similar code path in the SelectionDAGBuilder. Fixes PR27765. Differential Revision: http://reviews.llvm.org/D21061 llvm-svn: 272644
13 lines
521 B
LLVM
13 lines
521 B
LLVM
; RUN: not llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - 2>&1 | FileCheck %s
|
|
|
|
; Check for error message:
|
|
; CHECK: scalar-to-vector conversion failed, possible invalid constraint for vector type
|
|
; CHECK: scalar-to-vector conversion failed, possible invalid constraint for vector type
|
|
|
|
define hidden void @f(i32* %corr, i32 %order) nounwind ssp {
|
|
tail call void asm sideeffect "vst1.s32 { ${1:q}, ${2:q} }, [$0]", "r,{q0},{q1}"(i32* %corr, <2 x i64>* undef, i32 %order) nounwind, !srcloc !0
|
|
ret void
|
|
}
|
|
|
|
!0 = !{i32 257}
|