From c6214693a49bbedec4bce8ab2d4a42d53aff8865 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 2 Mar 2007 10:37:19 +0000 Subject: [PATCH] Add a new test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34842 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2007-03-01-SpillerCrash.ll | 85 +++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 test/CodeGen/X86/2007-03-01-SpillerCrash.ll diff --git a/test/CodeGen/X86/2007-03-01-SpillerCrash.ll b/test/CodeGen/X86/2007-03-01-SpillerCrash.ll new file mode 100644 index 00000000000..75cc6939fb4 --- /dev/null +++ b/test/CodeGen/X86/2007-03-01-SpillerCrash.ll @@ -0,0 +1,85 @@ +; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin8 -mattr=+sse2 + +define void @test() { +test.exit: + mul <4 x float> zeroinitializer, zeroinitializer ; <<4 x float>>:0 [#uses=4] + load <4 x float>* null ; <<4 x float>>:1 [#uses=1] + shufflevector <4 x float> %1, <4 x float> undef, <4 x i32> < i32 3, i32 3, i32 3, i32 3 > ; <<4 x float>>:2 [#uses=1] + mul <4 x float> %0, %2 ; <<4 x float>>:3 [#uses=1] + sub <4 x float> zeroinitializer, %3 ; <<4 x float>>:4 [#uses=1] + mul <4 x float> %4, zeroinitializer ; <<4 x float>>:5 [#uses=2] + bitcast <4 x float> zeroinitializer to <4 x i32> ; <<4 x i32>>:0 [#uses=1] + and <4 x i32> %0, < i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647 > ; <<4 x i32>>:1 [#uses=1] + bitcast <4 x i32> %1 to <4 x float> ; <<4 x float>>:6 [#uses=2] + extractelement <4 x float> %6, i32 0 ; :0 [#uses=1] + extractelement <4 x float> %6, i32 1 ; :1 [#uses=2] + br i1 false, label %0, label %5 + +;