diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-08-28 12:23:22 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-08-28 12:23:22 +0000 |
commit | a694e2a6910a33596ca706e2c6fc713f02b64c50 (patch) | |
tree | 3473f813bd38422141de802167a4e7522339a708 /test | |
parent | 9753f0b9b4ab33919c5010acb6a7b2dc1e875aff (diff) | |
download | external_llvm-a694e2a6910a33596ca706e2c6fc713f02b64c50.zip external_llvm-a694e2a6910a33596ca706e2c6fc713f02b64c50.tar.gz external_llvm-a694e2a6910a33596ca706e2c6fc713f02b64c50.tar.bz2 |
Make sure that we don't call getZExtValue on values > 64 bits.
Thanks Benjamin for noticing this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/2012-08-28-udiv_ashl.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2012-08-28-udiv_ashl.ll b/test/Transforms/InstCombine/2012-08-28-udiv_ashl.ll index 9f52119..1bede34 100644 --- a/test/Transforms/InstCombine/2012-08-28-udiv_ashl.ll +++ b/test/Transforms/InstCombine/2012-08-28-udiv_ashl.ll @@ -48,3 +48,10 @@ entry: %div1 = sdiv i32 %div, 100 ret i32 %div1 } + +define i80 @no_crash_i80(i80 %x) { +entry: + %div = lshr i80 %x, 2 + %div1 = udiv i80 %div, 100 + ret i80 %div1 +} |