summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-13 23:53:04 +0000
committerChris Lattner <sabre@nondot.org>2004-03-13 23:53:04 +0000
commite561cb51de0cef227caa9ece3cef50546b70277e (patch)
treefb2f5bc7549c3fc6f6447a962d1b1c3c76abaf85
parent2dc85b27e4de4e414faab987022f194c98160051 (diff)
downloadbcm5719-llvm-e561cb51de0cef227caa9ece3cef50546b70277e.tar.gz
bcm5719-llvm-e561cb51de0cef227caa9ece3cef50546b70277e.zip
New testcase, distilled from povray I think.
llvm-svn: 12364
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll b/llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll
new file mode 100644
index 00000000000..9e77df948a2
--- /dev/null
+++ b/llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll
@@ -0,0 +1,13 @@
+; This testcase caused the combiner to go into an infinite loop, moving the
+; cast back and forth, changing the seteq to operate on int vs uint and back.
+
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+
+bool %test(uint %A, int %B) {
+ %C = sub uint 0, %A
+ %Cc = cast uint %C to int
+ %D = sub int 0, %B
+ %E = seteq int %Cc, %D
+ ret bool %E
+}
+
OpenPOWER on IntegriCloud