diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-14 15:55:32 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-14 15:55:32 -0800 |
commit | 9e5d63770725ea57e1f8455652629e6c34c5efff (patch) | |
tree | d0da17bfded63a0c10d9bf9a89b990fb631e10f5 /lib | |
parent | b3d5de7043272a13341ea7ae0ac176a5782f13a7 (diff) |
fix ashr when high bits are exactly 0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/NaCl/ExpandI64.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/NaCl/ExpandI64.cpp b/lib/Transforms/NaCl/ExpandI64.cpp index 6034880613..a8e2689003 100644 --- a/lib/Transforms/NaCl/ExpandI64.cpp +++ b/lib/Transforms/NaCl/ExpandI64.cpp @@ -516,7 +516,7 @@ bool ExpandI64::splitInst(Instruction *I) { ShiftChunks = Shifts/32; Dir = 1; if (I->getOpcode() == Instruction::AShr) { - Value *Cond = CopyDebug(new ICmpInst(I, ICmpInst::ICMP_SLE, LeftChunks[LeftChunks.size()-1], Zero), I); + Value *Cond = CopyDebug(new ICmpInst(I, ICmpInst::ICMP_SLT, LeftChunks[LeftChunks.size()-1], Zero), I); TopFiller = CopyDebug(SelectInst::Create(Cond, ConstantInt::get(i32, -1), Zero, "", I), I); } } |