From b545cde675e30f63c0a94ca5538bfb7fe4be186d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 20 Apr 2010 18:14:47 +0000 Subject: [PATCH] Move CodeGen/X86/2010-04-19-DAGCombineCrash.ll into CodeGen/X86/crash.ll. Also reduce. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101925 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../CodeGen/X86/2010-04-19-DAGCombineCrash.ll | 58 ------------------- test/CodeGen/X86/crash.ll | 21 +++++++ 2 files changed, 21 insertions(+), 58 deletions(-) delete mode 100644 test/CodeGen/X86/2010-04-19-DAGCombineCrash.ll diff --git a/test/CodeGen/X86/2010-04-19-DAGCombineCrash.ll b/test/CodeGen/X86/2010-04-19-DAGCombineCrash.ll deleted file mode 100644 index 4d73c648433..00000000000 --- a/test/CodeGen/X86/2010-04-19-DAGCombineCrash.ll +++ /dev/null @@ -1,58 +0,0 @@ -; RUN: llc < %s -mtriple=i386-apple-darwin -; rdar://7869290 - -%struct.anon = type { float } - -define void @func() nounwind ssp { -entry: - br label %bb66 - -bb: ; preds = %bb66 - br i1 undef, label %bb65, label %bb2 - -bb2: ; preds = %bb - br i1 undef, label %bb65, label %bb3 - -bb3: ; preds = %bb2 - br i1 undef, label %bb65, label %bb4 - -bb4: ; preds = %bb3 - br i1 undef, label %bb65, label %bb5 - -bb5: ; preds = %bb4 - br i1 undef, label %bb65, label %bb6 - -bb6: ; preds = %bb5 - br i1 undef, label %bb65, label %bb11 - -bb11: ; preds = %bb6 - br i1 undef, label %bb65, label %bb12 - -bb12: ; preds = %bb11 - br i1 undef, label %bb65, label %bb13 - -bb13: ; preds = %bb12 - br i1 undef, label %bb65, label %bb14 - -bb14: ; preds = %bb13 - %0 = trunc i16 undef to i1 ; [#uses=1] - %1 = load i8* undef, align 8 ; [#uses=1] - %2 = shl i8 %1, 4 ; [#uses=1] - %3 = lshr i8 %2, 7 ; [#uses=1] - %4 = trunc i8 %3 to i1 ; [#uses=1] - %5 = icmp ne i1 %0, %4 ; [#uses=1] - br i1 %5, label %bb65, label %bb15 - -bb15: ; preds = %bb14 - %6 = load %struct.anon** undef, align 8 ; <%struct.anon*> [#uses=0] - br label %bb65 - -bb65: ; preds = %bb15, %bb14, %bb13, %bb12, %bb11, %bb6, %bb5, %bb4, %bb3, %bb2, %bb - br label %bb66 - -bb66: ; preds = %bb65, %entry - br i1 undef, label %bb, label %bb67 - -bb67: ; preds = %bb66 - ret void -} diff --git a/test/CodeGen/X86/crash.ll b/test/CodeGen/X86/crash.ll index 3d12adb96cc..2f27f35f0ac 100644 --- a/test/CodeGen/X86/crash.ll +++ b/test/CodeGen/X86/crash.ll @@ -109,3 +109,24 @@ do.body92: ; preds = %if.then66 !0 = metadata !{i32 633550} !1 = metadata !{i32 634261} + + +; Crash during XOR optimization. +; + +define void @test7() nounwind ssp { +entry: + br i1 undef, label %bb14, label %bb67 + +bb14: + %tmp0 = trunc i16 undef to i1 + %tmp1 = load i8* undef, align 8 + %tmp2 = shl i8 %tmp1, 4 + %tmp3 = lshr i8 %tmp2, 7 + %tmp4 = trunc i8 %tmp3 to i1 + %tmp5 = icmp ne i1 %tmp0, %tmp4 + br i1 %tmp5, label %bb14, label %bb67 + +bb67: + ret void +}