diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2008-06-05 14:25:11 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2008-06-05 14:25:11 +0000 |
commit | 1b480995a97f93ac519db177c000a092e348ec97 (patch) | |
tree | 9487a87742780f1cdeb77419056ab4f33dbf5c51 /test | |
parent | 17fc65ea342afa54dab2822778a4dd01d1a968c6 (diff) | |
download | external_llvm-1b480995a97f93ac519db177c000a092e348ec97.zip external_llvm-1b480995a97f93ac519db177c000a092e348ec97.tar.gz external_llvm-1b480995a97f93ac519db177c000a092e348ec97.tar.bz2 |
Add a test case for opt -instcombine bug fix in revision 52003.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2008-06-05-ashr-crash.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll b/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll new file mode 100644 index 0000000..ec13bbf --- /dev/null +++ b/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | opt -instcombine + +define i65 @foo(i65 %x) nounwind { +entry: + %tmp2 = ashr i65 %x, 65 ; <i65> [#uses=1] + ret i65 %tmp2 +} |