@@ -6675,13 +6675,13 @@ void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_0_0(
66756675 MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
66766676 assert (OpIdx >= 0 && " expected to match an immediate operand" );
66776677 MIB.addImm (
6678- (MI.getOperand (OpIdx).getImm () & 0x2 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
6678+ (MI.getOperand (OpIdx).getImm () & 0x1 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
66796679}
66806680
66816681void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_0_1 (
66826682 MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
66836683 assert (OpIdx >= 0 && " expected to match an immediate operand" );
6684- MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x2 )
6684+ MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x1 )
66856685 ? (int64_t )(SISrcMods::OP_SEL_0 | SISrcMods::DST_OP_SEL)
66866686 : (int64_t )SISrcMods::DST_OP_SEL);
66876687}
@@ -6690,13 +6690,13 @@ void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_1_0(
66906690 MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
66916691 assert (OpIdx >= 0 && " expected to match an immediate operand" );
66926692 MIB.addImm (
6693- (MI.getOperand (OpIdx).getImm () & 0x1 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
6693+ (MI.getOperand (OpIdx).getImm () & 0x2 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
66946694}
66956695
66966696void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_1_1 (
66976697 MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
66986698 assert (OpIdx >= 0 && " expected to match an immediate operand" );
6699- MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x1 )
6699+ MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x2 )
67006700 ? (int64_t )(SISrcMods::OP_SEL_0)
67016701 : 0 );
67026702}
@@ -6719,14 +6719,15 @@ void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_2_0(
67196719 MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
67206720 assert (OpIdx >= 0 && " expected to match an immediate operand" );
67216721 MIB.addImm (
6722- (MI.getOperand (OpIdx).getImm () & 0x1 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
6722+ (MI.getOperand (OpIdx).getImm () & 0x2 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
67236723}
67246724
67256725void AMDGPUInstructionSelector::renderDstSelToOpSel3XFormXForm (
67266726 MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
67276727 assert (OpIdx >= 0 && " expected to match an immediate operand" );
6728- MIB.addImm (
6729- (MI.getOperand (OpIdx).getImm () & 0x2 ) ? (int64_t )SISrcMods::DST_OP_SEL : 0 );
6728+ MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x1 )
6729+ ? (int64_t )SISrcMods::DST_OP_SEL
6730+ : 0 );
67306731}
67316732
67326733void AMDGPUInstructionSelector::renderExtractCPol (MachineInstrBuilder &MIB,
0 commit comments