From cff1fe5f9f35c69f504285781ba174f005b30850 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 4 Mar 2005 23:20:46 +0000 Subject: [PATCH] Testcase for a bug that caused us to miscompile ptrdist/ks on sparc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20444 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll diff --git a/test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll b/test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll new file mode 100644 index 00000000000..05a43965a42 --- /dev/null +++ b/test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'ret bool false' +bool %test(ulong %tmp.169) { + %tmp.1710 = shr ulong %tmp.169, ubyte 1 + %tmp.1912 = setgt ulong %tmp.1710, 0 + ret bool %tmp.1912 +} + -- 2.34.1