1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/CodeGen/X86/2012-02-14-scalar.ll
Nadav Rotem 5da800572a Fix PR12000. Some vector operations may use scalar operands with types
that are greater than the vector element type. For example BUILD_VECTOR
of type <1 x i1> with a constant i8 operand.
This patch fixes the assertion.

llvm-svn: 150477
2012-02-14 13:06:32 +00:00

14 lines
433 B
LLVM

; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx
target triple = "x86_64-unknown-linux-gnu"
; Make sure we are not crashing on this one
define void @autogen_28112_5000() {
BB:
%S17 = icmp sgt <1 x i64> undef, undef
%E19 = extractelement <1 x i1> %S17, i32 0
br label %CF
CF: ; preds = %CF, %BB
%S23 = select i1 %E19, i8 undef, i8 undef
br label %CF
}