2011-12-09 06:15:00 +00:00
|
|
|
; RUN: llc < %s -march=x86-64 -mcpu=corei7-avx -mattr=+avx
|
2011-12-08 22:05:28 +00:00
|
|
|
; Various missing patterns causing crashes.
|
|
|
|
; rdar://10538793
|
|
|
|
|
|
|
|
define void @t1() nounwind {
|
|
|
|
entry:
|
|
|
|
br label %loop.cond
|
|
|
|
|
|
|
|
loop.cond: ; preds = %t1.exit, %entry
|
|
|
|
br i1 false, label %return, label %loop
|
|
|
|
|
|
|
|
loop: ; preds = %loop.cond
|
|
|
|
br i1 undef, label %0, label %t1.exit
|
|
|
|
|
|
|
|
; <label>:0 ; preds = %loop
|
|
|
|
%1 = load <16 x i32> addrspace(1)* undef, align 64
|
|
|
|
%2 = shufflevector <16 x i32> <i32 0, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>, <16 x i32> %1, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 16, i32 0, i32 0>
|
|
|
|
store <16 x i32> %2, <16 x i32> addrspace(1)* undef, align 64
|
|
|
|
br label %t1.exit
|
|
|
|
|
|
|
|
t1.exit: ; preds = %0, %loop
|
|
|
|
br label %loop.cond
|
|
|
|
|
|
|
|
return: ; preds = %loop.cond
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @t2() nounwind {
|
|
|
|
br i1 undef, label %1, label %4
|
|
|
|
|
|
|
|
; <label>:1 ; preds = %0
|
|
|
|
%2 = load <16 x i32> addrspace(1)* undef, align 64
|
|
|
|
%3 = shufflevector <16 x i32> <i32 0, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>, <16 x i32> %2, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 20, i32 0, i32 0, i32 0, i32 0>
|
|
|
|
store <16 x i32> %3, <16 x i32> addrspace(1)* undef, align 64
|
|
|
|
br label %4
|
|
|
|
|
|
|
|
; <label>:4 ; preds = %1, %0
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @t3() nounwind {
|
|
|
|
entry:
|
|
|
|
br label %loop.cond
|
|
|
|
|
|
|
|
loop.cond: ; preds = %t2.exit, %entry
|
|
|
|
br i1 false, label %return, label %loop
|
|
|
|
|
|
|
|
loop: ; preds = %loop.cond
|
|
|
|
br i1 undef, label %0, label %t2.exit
|
|
|
|
|
|
|
|
; <label>:0 ; preds = %loop
|
|
|
|
%1 = shufflevector <16 x i32> <i32 0, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>, <16 x i32> undef, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 25, i32 0>
|
|
|
|
%2 = load <16 x i32> addrspace(1)* undef, align 64
|
|
|
|
%3 = shufflevector <16 x i32> <i32 0, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>, <16 x i32> %2, <16 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 28, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
|
|
|
|
store <16 x i32> %3, <16 x i32> addrspace(1)* undef, align 64
|
|
|
|
br label %t2.exit
|
|
|
|
|
|
|
|
t2.exit: ; preds = %0, %loop
|
|
|
|
br label %loop.cond
|
|
|
|
|
|
|
|
return: ; preds = %loop.cond
|
|
|
|
ret void
|
|
|
|
}
|