mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-20 02:28:23 +00:00
This is to fix the bug in IntrinsicLowering.cpp,
the LowerPartSet(). It didn't handle the situation correctly when the low, high argument values are in reverse order (low > high) with 'Val' type i32 (a corner case). llvm-svn: 63388
This commit is contained in:
parent
11d082d56e
commit
efe5611195
@ -533,7 +533,8 @@ static Instruction *LowerPartSet(CallInst *CI) {
|
||||
Lo = new ZExtInst(Lo_pn, ValTy, "", entry);
|
||||
} else if (ValBits < 32) {
|
||||
Lo = new TruncInst(Lo_pn, ValTy, "", entry);
|
||||
}
|
||||
} else
|
||||
Lo = Lo_pn;
|
||||
// Determine if the replacement bits are larger than the number of bits we
|
||||
// are replacing and deal with it.
|
||||
ICmpInst* is_large =
|
||||
|
Loading…
Reference in New Issue
Block a user