@@ -2642,40 +2642,11 @@ static void verifyInstructionDataport(const common_isa_header& isaHeader,
2642
2642
ch_mask = ch_mask & 0xF ;
2643
2643
REPORT_INSTRUCTION (options,ch_mask != 0x0 , " At least one channel must be enabled for TYPED GATEHR4/SCATTER4" );
2644
2644
2645
- auto execSize = (Common_ISA_Exec_Size)(inst->execsize & 0xF );
2646
- REPORT_INSTRUCTION (options,
2647
- execSize == EXEC_SIZE_8,
2648
- " Only support SIMD8 mode for TYPED GATEHR4/SCATTER4" );
2649
-
2650
2645
surface = getPrimitiveOperand<uint8_t >(inst, i++);
2651
2646
REPORT_INSTRUCTION (options, (0 != surface && 5 != surface), " Surface T0/T5 (the SLM surface) is not allowed for TYPED SCATTTER4/GATHER4" );
2652
2647
REPORT_INSTRUCTION (options,surface < numPreDefinedSurfs + header->getSurfaceCount (),
2653
2648
" CISA dataport TYPED SCATTTER4/GATHER4 instruction uses an undeclared surface." );
2654
2649
}
2655
- else
2656
- {
2657
- uint8_t ch_mask = 0 ;
2658
- uint8_t num_elts = 0 ;
2659
-
2660
- ch_mask = getPrimitiveOperand<uint8_t >(inst, i++);
2661
- ch_mask = ch_mask & 0xF ;
2662
- REPORT_INSTRUCTION (options,ch_mask != 0xF , " At least one channel must be enabled" );
2663
-
2664
- num_elts = getPrimitiveOperand<uint8_t >(inst, i++);
2665
- num_elts = num_elts & 0x3 ;
2666
-
2667
- if (num_elts == 0 ) num_elts = 8 ;
2668
- else if (num_elts == 1 ) num_elts = 16 ;
2669
- else REPORT_INSTRUCTION (options,false , " Illegal number of elements used in GATHER4/SCATTER4 instruction." );
2670
-
2671
- REPORT_INSTRUCTION (options,num_elts == 8 , " Only support SIMD8 mode for typed gather4/scatter4." );
2672
-
2673
- surface = getPrimitiveOperand<uint8_t >(inst, i++);
2674
- REPORT_INSTRUCTION (options,0 != surface, " Surface T0 (the SLM surface) is not allowed for TYPED SCATTTER4/GATHER4" );
2675
- REPORT_INSTRUCTION (options,surface < numPreDefinedSurfs + header->getSurfaceCount (),
2676
- " CISA dataport TYPED SCATTTER4/GATHER4 instruction uses an undeclared surface." );
2677
- }
2678
-
2679
2650
break ;
2680
2651
}
2681
2652
case ISA_GATHER4_SCALED:
0 commit comments