@@ -6133,13 +6133,13 @@ void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_0_0(
6133
6133
MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
6134
6134
assert (OpIdx >= 0 && " expected to match an immediate operand" );
6135
6135
MIB.addImm (
6136
- (MI.getOperand (OpIdx).getImm () & 0x2 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
6136
+ (MI.getOperand (OpIdx).getImm () & 0x1 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
6137
6137
}
6138
6138
6139
6139
void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_0_1 (
6140
6140
MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
6141
6141
assert (OpIdx >= 0 && " expected to match an immediate operand" );
6142
- MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x2 )
6142
+ MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x1 )
6143
6143
? (int64_t )(SISrcMods::OP_SEL_0 | SISrcMods::DST_OP_SEL)
6144
6144
: (int64_t )SISrcMods::DST_OP_SEL);
6145
6145
}
@@ -6148,13 +6148,13 @@ void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_1_0(
6148
6148
MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
6149
6149
assert (OpIdx >= 0 && " expected to match an immediate operand" );
6150
6150
MIB.addImm (
6151
- (MI.getOperand (OpIdx).getImm () & 0x1 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
6151
+ (MI.getOperand (OpIdx).getImm () & 0x2 ) ? (int64_t )SISrcMods::OP_SEL_0 : 0 );
6152
6152
}
6153
6153
6154
6154
void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_1_1 (
6155
6155
MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
6156
6156
assert (OpIdx >= 0 && " expected to match an immediate operand" );
6157
- MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x1 )
6157
+ MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x2 )
6158
6158
? (int64_t )(SISrcMods::OP_SEL_0)
6159
6159
: 0 );
6160
6160
}
@@ -6183,8 +6183,9 @@ void AMDGPUInstructionSelector::renderSrcAndDstSelToOpSelXForm_2_0(
6183
6183
void AMDGPUInstructionSelector::renderDstSelToOpSel3XFormXForm (
6184
6184
MachineInstrBuilder &MIB, const MachineInstr &MI, int OpIdx) const {
6185
6185
assert (OpIdx >= 0 && " expected to match an immediate operand" );
6186
- MIB.addImm (
6187
- (MI.getOperand (OpIdx).getImm () & 0x2 ) ? (int64_t )SISrcMods::DST_OP_SEL : 0 );
6186
+ MIB.addImm ((MI.getOperand (OpIdx).getImm () & 0x2 )
6187
+ ? (int64_t )SISrcMods::DST_OP_SEL
6188
+ : 0 );
6188
6189
}
6189
6190
6190
6191
void AMDGPUInstructionSelector::renderExtractCPol (MachineInstrBuilder &MIB,
0 commit comments