xref: /minix3/external/bsd/llvm/dist/llvm/test/CodeGen/X86/2011-09-21-setcc-bug.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc; RUN: llc < %s -march=x86-64 -mcpu=corei7 -mattr=+sse4.1
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc; Make sure we are not crashing on this code.
4*f4a2713aSLionel Sambuc
5*f4a2713aSLionel Sambucdefine void @load_4_i8(<4 x i8>* %k, <4 x i8>* %y, <4 x double>* %A1, <4 x double>* %A0)  {
6*f4a2713aSLionel Sambuc   %A = load <4 x i8>* %k
7*f4a2713aSLionel Sambuc   %B = load <4 x i8>* %y
8*f4a2713aSLionel Sambuc   %C = load <4 x double>* %A0
9*f4a2713aSLionel Sambuc   %D= load <4 x double>* %A1
10*f4a2713aSLionel Sambuc   %M = icmp uge <4 x i8> %A, %B
11*f4a2713aSLionel Sambuc   %T = select <4 x i1> %M, <4 x double> %C, <4 x double> %D
12*f4a2713aSLionel Sambuc   store <4 x double> %T, <4 x double>* undef
13*f4a2713aSLionel Sambuc   ret void
14*f4a2713aSLionel Sambuc}
15*f4a2713aSLionel Sambuc
16*f4a2713aSLionel Sambuc
17*f4a2713aSLionel Sambucdefine void @load_256_i8(<256 x i8>* %k, <256 x i8>* %y, <256 x double>* %A1, <256 x double>* %A0)  {
18*f4a2713aSLionel Sambuc   %A = load <256 x i8>* %k
19*f4a2713aSLionel Sambuc   %B = load <256 x i8>* %y
20*f4a2713aSLionel Sambuc   %C = load <256 x double>* %A0
21*f4a2713aSLionel Sambuc   %D= load <256 x double>* %A1
22*f4a2713aSLionel Sambuc   %M = icmp uge <256 x i8> %A, %B
23*f4a2713aSLionel Sambuc   %T = select <256 x i1> %M, <256 x double> %C, <256 x double> %D
24*f4a2713aSLionel Sambuc   store <256 x double> %T, <256 x double>* undef
25*f4a2713aSLionel Sambuc   ret void
26*f4a2713aSLionel Sambuc}
27*f4a2713aSLionel Sambuc
28