@@ -2242,41 +2242,6 @@ class getAsmVOP3P <bit HasDst, int NumSrcArgs, bit HasNeg,
2242
2242
string ret = dst#src0#src1#src2#opsel#mods#clamp;
2243
2243
}
2244
2244
2245
- // FIXME-TRUE16 AsmVOP3OpSel will be deprecated after all
2246
- // VOP3 16 bit instructions are replaced to true16 format
2247
- class getAsmVOP3OpSel <int NumSrcArgs,
2248
- bit HasClamp,
2249
- bit HasOMod,
2250
- bit Src0HasMods,
2251
- bit Src1HasMods,
2252
- bit Src2HasMods,
2253
- bit HasByteSel = 0,
2254
- bit HasBitOp3 = 0> {
2255
- string dst = "$vdst";
2256
-
2257
- string isrc0 = !if(!eq(NumSrcArgs, 1), "$src0", "$src0,");
2258
- string isrc1 = !if(!eq(NumSrcArgs, 1), "",
2259
- !if(!eq(NumSrcArgs, 2), " $src1",
2260
- " $src1,"));
2261
- string isrc2 = !if(!eq(NumSrcArgs, 3), " $src2", "");
2262
-
2263
- string fsrc0 = !if(!eq(NumSrcArgs, 1), "$src0_modifiers", "$src0_modifiers,");
2264
- string fsrc1 = !if(!eq(NumSrcArgs, 1), "",
2265
- !if(!eq(NumSrcArgs, 2), " $src1_modifiers",
2266
- " $src1_modifiers,"));
2267
- string fsrc2 = !if(!eq(NumSrcArgs, 3), " $src2_modifiers", "");
2268
-
2269
- string src0 = !if(Src0HasMods, fsrc0, isrc0);
2270
- string src1 = !if(Src1HasMods, fsrc1, isrc1);
2271
- string src2 = !if(Src2HasMods, fsrc2, isrc2);
2272
-
2273
- string bytesel = !if(HasByteSel, "$byte_sel", "");
2274
- string clamp = !if(HasClamp, "$clamp", "");
2275
- string omod = !if(HasOMod, "$omod", "");
2276
- string bitop3 = !if(HasBitOp3, "$bitop3", "");
2277
- string ret = dst#", "#src0#src1#src2#bitop3#"$op_sel"#bytesel#clamp#omod;
2278
- }
2279
-
2280
2245
class getAsmDPP <bit HasDst, int NumSrcArgs, bit HasModifiers, ValueType DstVT = i32> {
2281
2246
string dst = !if(HasDst,
2282
2247
!if(!eq(DstVT.Size, 1),
@@ -2687,14 +2652,7 @@ class VOPProfile <list<ValueType> _ArgVT, bit _EnableClamp = 0> {
2687
2652
HasSrc2Mods, DstVT, HasFP8ByteSel, HasBitOp3>.ret;
2688
2653
field string Asm64 = AsmVOP3Base;
2689
2654
field string AsmVOP3P = getAsmVOP3P<HasDst, NumSrcArgs, HasNeg, HasClamp, HasOpSel>.ret;
2690
- field string AsmVOP3OpSel = getAsmVOP3OpSel<NumSrcArgs,
2691
- HasClamp,
2692
- HasOMod,
2693
- HasSrc0FloatMods,
2694
- HasSrc1FloatMods,
2695
- HasSrc2FloatMods,
2696
- HasFP8ByteSel,
2697
- HasBitOp3>.ret;
2655
+ field string AsmVOP3OpSel = AsmVOP3Base;
2698
2656
field string AsmVOP3DPP = getAsmVOP3DPP<AsmVOP3Base>.ret;
2699
2657
field string AsmVOP3DPP16 = getAsmVOP3DPP16<AsmVOP3Base>.ret;
2700
2658
field string AsmVOP3DPP8 = getAsmVOP3DPP8<AsmVOP3Base>.ret;
0 commit comments