summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-04 23:20:46 +0000
committerChris Lattner <sabre@nondot.org>2005-03-04 23:20:46 +0000
commit6cc4ee0f24c81c06f31aaa90813809712611db0f (patch)
tree8efe4554f2df29292cfe9473c8a6e2f520047a46
parentf3cd1477c389a08d84e43a3b7011f05ec4b5c7e7 (diff)
downloadbcm5719-llvm-6cc4ee0f24c81c06f31aaa90813809712611db0f.tar.gz
bcm5719-llvm-6cc4ee0f24c81c06f31aaa90813809712611db0f.zip
Testcase for a bug that caused us to miscompile ptrdist/ks on sparc.
llvm-svn: 20444
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll b/llvm/test/Regression/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll
new file mode 100644
index 00000000000..05a43965a42
--- /dev/null
+++ b/llvm/test/Regression/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
+}
+
OpenPOWER on IntegriCloud