mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
R600: Add comment clariying use of sext for result of MUL_U24
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93ea1378d2
commit
52d940edcd
@ -1158,6 +1158,8 @@ SDValue AMDGPUTargetLowering::PerformDAGCombine(SDNode *N,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We need to use sext even for MUL_U24, because MUL_U24 is used
|
||||||
|
// for signed multiply of 8 and 16-bit types.
|
||||||
SDValue Reg = DAG.getSExtOrTrunc(Mul, DL, VT);
|
SDValue Reg = DAG.getSExtOrTrunc(Mul, DL, VT);
|
||||||
|
|
||||||
return Reg;
|
return Reg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user