mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Fix using wrong result type for setcc.
When reducing the bitwidth of a comparison against a constant, the original setcc's result type was used, which was incorrect. No test since I don't think any other in tree targets change the bitwidth of the setcc type depending on the bitwidth of the compared type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -557,6 +557,11 @@ public:
|
||||
/// value assuming it was the smaller SrcTy value.
|
||||
SDValue getZeroExtendInReg(SDValue Op, SDLoc DL, EVT SrcTy);
|
||||
|
||||
/// getBoolExtOrTrunc - Convert Op, which must be of integer type, to the
|
||||
/// integer type VT, by using an extension appropriate for the target's
|
||||
/// BooleanContent or truncating it.
|
||||
SDValue getBoolExtOrTrunc(SDValue Op, SDLoc SL, EVT VT);
|
||||
|
||||
/// getNOT - Create a bitwise NOT operation as (XOR Val, -1).
|
||||
SDValue getNOT(SDLoc DL, SDValue Val, EVT VT);
|
||||
|
||||
|
Reference in New Issue
Block a user