mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
fix a bug I introduced, no idea how this didn't repro right.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15ea094474
commit
a5bbde8efd
@ -2067,8 +2067,8 @@ APInt APInt::ssub_ov(const APInt &RHS, bool &Overflow) const {
|
||||
}
|
||||
|
||||
APInt APInt::usub_ov(const APInt &RHS, bool &Overflow) const {
|
||||
APInt Res = *this+RHS;
|
||||
Overflow = Res.ugt(RHS);
|
||||
APInt Res = *this-RHS;
|
||||
Overflow = Res.ugt(*this);
|
||||
return Res;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: true
|
||||
; opt < %s -constprop -S | FileCheck %s
|
||||
; RUN: opt < %s -constprop -S | FileCheck %s
|
||||
|
||||
%i8i1 = type {i8, i1}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user