summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll b/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll
new file mode 100644
index 00000000000..8e523d3faef
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+
+uint %test(bool %C, uint %tmp.15) {
+ %tmp.16 = select bool %C, uint 8, uint 1
+ %tmp.18 = div uint %tmp.15, %tmp.16
+ ret uint %tmp.18
+}
OpenPOWER on IntegriCloud