@@ -1954,21 +1954,17 @@ static const fltSemantics *getOpFltSemantics(uint8_t OperandType) {
19541954 // representation of the constant truncated to the 16 LSBs should be used.
19551955 case AMDGPU::OPERAND_REG_IMM_INT16:
19561956 case AMDGPU::OPERAND_REG_INLINE_C_INT16:
1957- case AMDGPU::OPERAND_REG_INLINE_AC_INT16:
19581957 case AMDGPU::OPERAND_REG_IMM_INT32:
19591958 case AMDGPU::OPERAND_REG_IMM_FP32:
19601959 case AMDGPU::OPERAND_REG_IMM_FP32_DEFERRED:
19611960 case AMDGPU::OPERAND_REG_INLINE_C_INT32:
19621961 case AMDGPU::OPERAND_REG_INLINE_C_FP32:
19631962 case AMDGPU::OPERAND_REG_INLINE_AC_INT32:
19641963 case AMDGPU::OPERAND_REG_INLINE_AC_FP32:
1965- case AMDGPU::OPERAND_REG_INLINE_C_V2FP32:
19661964 case AMDGPU::OPERAND_REG_IMM_V2FP32:
1967- case AMDGPU::OPERAND_REG_INLINE_C_V2INT32:
19681965 case AMDGPU::OPERAND_REG_IMM_V2INT32:
19691966 case AMDGPU::OPERAND_REG_IMM_V2INT16:
19701967 case AMDGPU::OPERAND_REG_INLINE_C_V2INT16:
1971- case AMDGPU::OPERAND_REG_INLINE_AC_V2INT16:
19721968 case AMDGPU::OPERAND_KIMM32:
19731969 case AMDGPU::OPERAND_INLINE_SPLIT_BARRIER_INT32:
19741970 return &APFloat::IEEEsingle ();
@@ -1982,17 +1978,13 @@ static const fltSemantics *getOpFltSemantics(uint8_t OperandType) {
19821978 case AMDGPU::OPERAND_REG_IMM_FP16_DEFERRED:
19831979 case AMDGPU::OPERAND_REG_INLINE_C_FP16:
19841980 case AMDGPU::OPERAND_REG_INLINE_C_V2FP16:
1985- case AMDGPU::OPERAND_REG_INLINE_AC_FP16:
1986- case AMDGPU::OPERAND_REG_INLINE_AC_V2FP16:
19871981 case AMDGPU::OPERAND_REG_IMM_V2FP16:
19881982 case AMDGPU::OPERAND_KIMM16:
19891983 return &APFloat::IEEEhalf ();
19901984 case AMDGPU::OPERAND_REG_IMM_BF16:
19911985 case AMDGPU::OPERAND_REG_IMM_BF16_DEFERRED:
19921986 case AMDGPU::OPERAND_REG_INLINE_C_BF16:
19931987 case AMDGPU::OPERAND_REG_INLINE_C_V2BF16:
1994- case AMDGPU::OPERAND_REG_INLINE_AC_BF16:
1995- case AMDGPU::OPERAND_REG_INLINE_AC_V2BF16:
19961988 case AMDGPU::OPERAND_REG_IMM_V2BF16:
19971989 return &APFloat::BFloat ();
19981990 default :
@@ -2315,8 +2307,6 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
23152307 case AMDGPU::OPERAND_REG_IMM_BF16_DEFERRED:
23162308 case AMDGPU::OPERAND_REG_INLINE_C_BF16:
23172309 case AMDGPU::OPERAND_REG_INLINE_C_V2BF16:
2318- case AMDGPU::OPERAND_REG_INLINE_AC_BF16:
2319- case AMDGPU::OPERAND_REG_INLINE_AC_V2BF16:
23202310 case AMDGPU::OPERAND_REG_IMM_V2BF16:
23212311 if (AsmParser->hasInv2PiInlineImm () && Literal == 0x3fc45f306725feed ) {
23222312 // This is the 1/(2*pi) which is going to be truncated to bf16 with the
@@ -2343,15 +2333,9 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
23432333 case AMDGPU::OPERAND_REG_INLINE_C_FP16:
23442334 case AMDGPU::OPERAND_REG_INLINE_C_V2INT16:
23452335 case AMDGPU::OPERAND_REG_INLINE_C_V2FP16:
2346- case AMDGPU::OPERAND_REG_INLINE_AC_INT16:
2347- case AMDGPU::OPERAND_REG_INLINE_AC_FP16:
2348- case AMDGPU::OPERAND_REG_INLINE_AC_V2INT16:
2349- case AMDGPU::OPERAND_REG_INLINE_AC_V2FP16:
23502336 case AMDGPU::OPERAND_REG_IMM_V2INT16:
23512337 case AMDGPU::OPERAND_REG_IMM_V2FP16:
2352- case AMDGPU::OPERAND_REG_INLINE_C_V2FP32:
23532338 case AMDGPU::OPERAND_REG_IMM_V2FP32:
2354- case AMDGPU::OPERAND_REG_INLINE_C_V2INT32:
23552339 case AMDGPU::OPERAND_REG_IMM_V2INT32:
23562340 case AMDGPU::OPERAND_KIMM32:
23572341 case AMDGPU::OPERAND_KIMM16:
@@ -2394,9 +2378,7 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
23942378 case AMDGPU::OPERAND_REG_IMM_V2BF16:
23952379 case AMDGPU::OPERAND_REG_IMM_V2FP16:
23962380 case AMDGPU::OPERAND_REG_IMM_V2FP32:
2397- case AMDGPU::OPERAND_REG_INLINE_C_V2FP32:
23982381 case AMDGPU::OPERAND_REG_IMM_V2INT32:
2399- case AMDGPU::OPERAND_REG_INLINE_C_V2INT32:
24002382 case AMDGPU::OPERAND_INLINE_SPLIT_BARRIER_INT32:
24012383 if (isSafeTruncation (Val, 32 ) &&
24022384 AMDGPU::isInlinableLiteral32 (static_cast <int32_t >(Val),
@@ -2430,7 +2412,6 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
24302412
24312413 case AMDGPU::OPERAND_REG_IMM_INT16:
24322414 case AMDGPU::OPERAND_REG_INLINE_C_INT16:
2433- case AMDGPU::OPERAND_REG_INLINE_AC_INT16:
24342415 if (isSafeTruncation (Val, 16 ) &&
24352416 AMDGPU::isInlinableIntLiteral (static_cast <int16_t >(Val))) {
24362417 Inst.addOperand (MCOperand::createImm (Lo_32 (Val)));
@@ -2445,7 +2426,6 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
24452426 case AMDGPU::OPERAND_REG_INLINE_C_FP16:
24462427 case AMDGPU::OPERAND_REG_IMM_FP16:
24472428 case AMDGPU::OPERAND_REG_IMM_FP16_DEFERRED:
2448- case AMDGPU::OPERAND_REG_INLINE_AC_FP16:
24492429 if (isSafeTruncation (Val, 16 ) &&
24502430 AMDGPU::isInlinableLiteralFP16 (static_cast <int16_t >(Val),
24512431 AsmParser->hasInv2PiInlineImm ())) {
@@ -2461,7 +2441,6 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
24612441 case AMDGPU::OPERAND_REG_IMM_BF16:
24622442 case AMDGPU::OPERAND_REG_IMM_BF16_DEFERRED:
24632443 case AMDGPU::OPERAND_REG_INLINE_C_BF16:
2464- case AMDGPU::OPERAND_REG_INLINE_AC_BF16:
24652444 if (isSafeTruncation (Val, 16 ) &&
24662445 AMDGPU::isInlinableLiteralBF16 (static_cast <int16_t >(Val),
24672446 AsmParser->hasInv2PiInlineImm ())) {
@@ -2474,15 +2453,13 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
24742453 setImmKindLiteral ();
24752454 return ;
24762455
2477- case AMDGPU::OPERAND_REG_INLINE_C_V2INT16:
2478- case AMDGPU::OPERAND_REG_INLINE_AC_V2INT16: {
2456+ case AMDGPU::OPERAND_REG_INLINE_C_V2INT16: {
24792457 assert (isSafeTruncation (Val, 16 ));
24802458 assert (AMDGPU::isInlinableIntLiteral (static_cast <int16_t >(Val)));
24812459 Inst.addOperand (MCOperand::createImm (Val));
24822460 return ;
24832461 }
2484- case AMDGPU::OPERAND_REG_INLINE_C_V2FP16:
2485- case AMDGPU::OPERAND_REG_INLINE_AC_V2FP16: {
2462+ case AMDGPU::OPERAND_REG_INLINE_C_V2FP16: {
24862463 assert (isSafeTruncation (Val, 16 ));
24872464 assert (AMDGPU::isInlinableLiteralFP16 (static_cast <int16_t >(Val),
24882465 AsmParser->hasInv2PiInlineImm ()));
@@ -2491,8 +2468,7 @@ void AMDGPUOperand::addLiteralImmOperand(MCInst &Inst, int64_t Val, bool ApplyMo
24912468 return ;
24922469 }
24932470
2494- case AMDGPU::OPERAND_REG_INLINE_C_V2BF16:
2495- case AMDGPU::OPERAND_REG_INLINE_AC_V2BF16: {
2471+ case AMDGPU::OPERAND_REG_INLINE_C_V2BF16: {
24962472 assert (isSafeTruncation (Val, 16 ));
24972473 assert (AMDGPU::isInlinableLiteralBF16 (static_cast <int16_t >(Val),
24982474 AsmParser->hasInv2PiInlineImm ()));
@@ -3623,34 +3599,28 @@ bool AMDGPUAsmParser::isInlineConstant(const MCInst &Inst,
36233599 case 2 : {
36243600 const unsigned OperandType = Desc.operands ()[OpIdx].OperandType ;
36253601 if (OperandType == AMDGPU::OPERAND_REG_IMM_INT16 ||
3626- OperandType == AMDGPU::OPERAND_REG_INLINE_C_INT16 ||
3627- OperandType == AMDGPU::OPERAND_REG_INLINE_AC_INT16)
3602+ OperandType == AMDGPU::OPERAND_REG_INLINE_C_INT16)
36283603 return AMDGPU::isInlinableLiteralI16 (Val, hasInv2PiInlineImm ());
36293604
36303605 if (OperandType == AMDGPU::OPERAND_REG_INLINE_C_V2INT16 ||
3631- OperandType == AMDGPU::OPERAND_REG_INLINE_AC_V2INT16 ||
36323606 OperandType == AMDGPU::OPERAND_REG_IMM_V2INT16)
36333607 return AMDGPU::isInlinableLiteralV2I16 (Val);
36343608
36353609 if (OperandType == AMDGPU::OPERAND_REG_INLINE_C_V2FP16 ||
3636- OperandType == AMDGPU::OPERAND_REG_INLINE_AC_V2FP16 ||
36373610 OperandType == AMDGPU::OPERAND_REG_IMM_V2FP16)
36383611 return AMDGPU::isInlinableLiteralV2F16 (Val);
36393612
36403613 if (OperandType == AMDGPU::OPERAND_REG_INLINE_C_V2BF16 ||
3641- OperandType == AMDGPU::OPERAND_REG_INLINE_AC_V2BF16 ||
36423614 OperandType == AMDGPU::OPERAND_REG_IMM_V2BF16)
36433615 return AMDGPU::isInlinableLiteralV2BF16 (Val);
36443616
36453617 if (OperandType == AMDGPU::OPERAND_REG_IMM_FP16 ||
36463618 OperandType == AMDGPU::OPERAND_REG_INLINE_C_FP16 ||
3647- OperandType == AMDGPU::OPERAND_REG_INLINE_AC_FP16 ||
36483619 OperandType == AMDGPU::OPERAND_REG_IMM_FP16_DEFERRED)
36493620 return AMDGPU::isInlinableLiteralFP16 (Val, hasInv2PiInlineImm ());
36503621
36513622 if (OperandType == AMDGPU::OPERAND_REG_IMM_BF16 ||
36523623 OperandType == AMDGPU::OPERAND_REG_INLINE_C_BF16 ||
3653- OperandType == AMDGPU::OPERAND_REG_INLINE_AC_BF16 ||
36543624 OperandType == AMDGPU::OPERAND_REG_IMM_BF16_DEFERRED)
36553625 return AMDGPU::isInlinableLiteralBF16 (Val, hasInv2PiInlineImm ());
36563626
0 commit comments