From 5adb41a750c9ab6c4d5e3b86a3722c5e562b16a1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 16 Jun 2005 04:55:29 +0000 Subject: [PATCH] new testcase for PR583 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22226 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll diff --git a/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll b/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll new file mode 100644 index 00000000000..0d4e8cac594 --- /dev/null +++ b/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | opt -instcombine -disable-output + +int %_Z13func_31585107li(int %l_39521025, int %l_59244666) { + %shortcirc_val = select bool false, uint 1, uint 0 ; [#uses=1] + %tmp.8 = div uint 0, %shortcirc_val ; [#uses=1] + %tmp.9 = seteq uint %tmp.8, 0 ; [#uses=1] + %retval = select bool %tmp.9, int %l_59244666, int -1621308501 ; [#uses=1] + ret int %retval +}