File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -2109,19 +2109,8 @@ namespace IGC
2109
2109
VISA_PredOpnd* predOpnd = GetFlagOperand (m_encoderState.m_flag );
2110
2110
VISA_Exec_Size execSize = GetAluExecSize (dst);
2111
2111
2112
- switch (execSize)
2113
- {
2114
- case EXEC_SIZE_1:
2115
- case EXEC_SIZE_8:
2116
- case EXEC_SIZE_16:
2117
- break ;
2118
- case EXEC_SIZE_32:
2119
- IGC_ASSERT (getGRFSize () == 64 );
2120
- break ;
2121
- default :
2122
- IGC_ASSERT_MESSAGE (0 , " Unknown execution size on carry-borrow-arith!" );
2123
- break ;
2124
- }
2112
+ IGC_ASSERT (execSize == EXEC_SIZE_1 || execSize == EXEC_SIZE_8 || execSize == EXEC_SIZE_16 ||
2113
+ (execSize == EXEC_SIZE_32 && getGRFSize () == 64 ));
2125
2114
2126
2115
IGC_ASSERT_MESSAGE (m_encoderState.m_dstOperand .mod == EMOD_NONE, " addc/subb doesn't support saturate" );
2127
2116
You can’t perform that action at this time.
0 commit comments