From: Zhou Sheng Date: Thu, 5 Jun 2008 14:25:11 +0000 (+0000) Subject: Add a test case for opt -instcombine bug fix in revision 52003. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b73afcf6dc03e7ff49385cdd857c8d08910d9d3e;p=oota-llvm.git Add a test case for opt -instcombine bug fix in revision 52003. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52004 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll b/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll new file mode 100644 index 00000000000..ec13bbf65c1 --- /dev/null +++ b/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | opt -instcombine + +define i65 @foo(i65 %x) nounwind { +entry: + %tmp2 = ashr i65 %x, 65 ; [#uses=1] + ret i65 %tmp2 +}