mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
R600/SI: Fix not encoding src2 for v_div_scale_{f32|f64}
This apparently got lost in the VI changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -988,6 +988,19 @@ multiclass VOP3b_2_m <vop op, dag outs, dag ins, string asm,
|
|||||||
} // End sdst = SIOperand.VCC, Defs = [VCC]
|
} // End sdst = SIOperand.VCC, Defs = [VCC]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multiclass VOP3b_3_m <vop op, dag outs, dag ins, string asm,
|
||||||
|
list<dag> pattern, string opName, string revOp,
|
||||||
|
bit HasMods = 1, bit UseFullOp = 0> {
|
||||||
|
def "" : VOP3_Pseudo <outs, ins, pattern, opName>;
|
||||||
|
|
||||||
|
|
||||||
|
def _si : VOP3b_Real_si <op.SI3, outs, ins, asm, opName>,
|
||||||
|
VOP3DisableFields<1, 1, HasMods>;
|
||||||
|
|
||||||
|
def _vi : VOP3b_Real_vi <op.VI3, outs, ins, asm, opName>,
|
||||||
|
VOP3DisableFields<1, 1, HasMods>;
|
||||||
|
}
|
||||||
|
|
||||||
multiclass VOP3_C_m <vop op, dag outs, dag ins, string asm,
|
multiclass VOP3_C_m <vop op, dag outs, dag ins, string asm,
|
||||||
list<dag> pattern, string opName,
|
list<dag> pattern, string opName,
|
||||||
bit HasMods, bit defExec> {
|
bit HasMods, bit defExec> {
|
||||||
@@ -1289,7 +1302,7 @@ multiclass VOP3Inst <vop3 op, string opName, VOPProfile P,
|
|||||||
|
|
||||||
multiclass VOP3b_Helper <vop op, RegisterClass vrc, RegisterOperand arc,
|
multiclass VOP3b_Helper <vop op, RegisterClass vrc, RegisterOperand arc,
|
||||||
string opName, list<dag> pattern> :
|
string opName, list<dag> pattern> :
|
||||||
VOP3b_2_m <
|
VOP3b_3_m <
|
||||||
op, (outs vrc:$vdst, SReg_64:$sdst),
|
op, (outs vrc:$vdst, SReg_64:$sdst),
|
||||||
(ins InputModsNoDefault:$src0_modifiers, arc:$src0,
|
(ins InputModsNoDefault:$src0_modifiers, arc:$src0,
|
||||||
InputModsNoDefault:$src1_modifiers, arc:$src1,
|
InputModsNoDefault:$src1_modifiers, arc:$src1,
|
||||||
|
Reference in New Issue
Block a user