From 11e56cb4dc73bbb0bdc083042657ea3a5aad63f2 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 22 Jul 2008 23:54:03 +0000 Subject: LegalizeTypes support for VSETCC. Fixes PR2575. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53938 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2008-07-23-VSetCC.ll | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/CodeGen/X86/2008-07-23-VSetCC.ll (limited to 'test/CodeGen/X86/2008-07-23-VSetCC.ll') diff --git a/test/CodeGen/X86/2008-07-23-VSetCC.ll b/test/CodeGen/X86/2008-07-23-VSetCC.ll new file mode 100644 index 0000000..735c610 --- /dev/null +++ b/test/CodeGen/X86/2008-07-23-VSetCC.ll @@ -0,0 +1,30 @@ +; RUN: llvm-as < %s | llc -march=x86 -mcpu=pentium +; PR2575 + +define void @entry(i32 %m_task_id, i32 %start_x, i32 %end_x) nounwind { + br i1 false, label %bb.nph, label %._crit_edge + +bb.nph: ; preds = %bb.nph, %0 + vicmp sgt <4 x i32> zeroinitializer, < i32 -128, i32 -128, i32 -128, i32 -128 > ; <<4 x i32>>:1 [#uses=1] + extractelement <4 x i32> %1, i32 3 ; :2 [#uses=1] + lshr i32 %2, 31 ; :3 [#uses=1] + trunc i32 %3 to i1 ; :4 [#uses=1] + select i1 %4, i32 -1, i32 0 ; :5 [#uses=1] + insertelement <4 x i32> zeroinitializer, i32 %5, i32 3 ; <<4 x i32>>:6 [#uses=1] + and <4 x i32> zeroinitializer, %6 ; <<4 x i32>>:7 [#uses=1] + bitcast <4 x i32> %7 to <4 x float> ; <<4 x float>>:8 [#uses=1] + mul <4 x float> zeroinitializer, %8 ; <<4 x float>>:9 [#uses=1] + bitcast <4 x float> %9 to <4 x i32> ; <<4 x i32>>:10 [#uses=1] + or <4 x i32> %10, zeroinitializer ; <<4 x i32>>:11 [#uses=1] + bitcast <4 x i32> %11 to <4 x float> ; <<4 x float>>:12 [#uses=1] + mul <4 x float> %12, < float 1.000000e+02, float 1.000000e+02, float 1.000000e+02, float 1.000000e+02 > ; <<4 x float>>:13 [#uses=1] + sub <4 x float> %13, < float 1.000000e+02, float 1.000000e+02, float 1.000000e+02, float 1.000000e+02 > ; <<4 x float>>:14 [#uses=1] + extractelement <4 x float> %14, i32 3 ; :15 [#uses=1] + call float @fmaxf( float 0.000000e+00, float %15 ) ; :16 [#uses=0] + br label %bb.nph + +._crit_edge: ; preds = %0 + ret void +} + +declare float @fmaxf(float, float) -- cgit v1.1