summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll b/test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll
new file mode 100644
index 0000000000..7c26dc1753
--- /dev/null
+++ b/test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll
@@ -0,0 +1,10 @@
+; The reassociate pass is not preserving dominance properties correctly
+;
+; RUN: as < %s | opt -reassociate -verify
+
+int %compute_dist(int %i, int %j) {
+ %reg119 = sub int %j, %i
+ ret int %reg119
+}
+
+