@@ -1528,15 +1528,14 @@ class getSOPSrcForVT<ValueType VT> {
1528
1528
// Returns the vreg register class to use for source operand given VT
1529
1529
class getVregSrcForVT<ValueType VT, bit IsTrue16 = 0, bit IsFake16 = 0> {
1530
1530
RegisterOperand ret =
1531
- !if (!eq(VT.Size, 128), RegisterOperand<VReg_128>,
1532
- !if (!eq(VT.Size, 96), RegisterOperand<VReg_96>,
1533
- !if (!eq(VT.Size, 64), RegisterOperand<VReg_64>,
1534
- !if (!eq(VT.Size, 48), RegisterOperand<VReg_64>,
1535
- !if (!eq(VT.Size, 16),
1536
- !if (IsTrue16,
1537
- !if (IsFake16, VGPRSrc_32_Lo128, VGPRSrc_16_Lo128),
1538
- RegisterOperand<VGPR_32>),
1539
- RegisterOperand<VGPR_32>)))));
1531
+ !cond(!eq(VT.Size, 128) : RegisterOperand<VReg_128>,
1532
+ !eq(VT.Size, 96) : RegisterOperand<VReg_96>,
1533
+ !eq(VT.Size, 64) : RegisterOperand<VReg_64>,
1534
+ !eq(VT.Size, 48) : RegisterOperand<VReg_64>,
1535
+ !eq(VT.Size, 16) : !if(IsTrue16,
1536
+ !if(IsFake16, VGPRSrc_32_Lo128, VGPRSrc_16_Lo128),
1537
+ RegisterOperand<VGPR_32>),
1538
+ 1 : RegisterOperand<VGPR_32>);
1540
1539
}
1541
1540
1542
1541
class getSDWASrcForVT <ValueType VT> {
0 commit comments