mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
fix a bug I introduced, no idea how this didn't repro right.
llvm-svn: 116462
This commit is contained in:
parent
7c5912d186
commit
27d8b68afa
@ -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…
x
Reference in New Issue
Block a user