@@ -1136,6 +1136,8 @@ cm_atomic(SurfaceIndex Idx, vector<unsigned, N> Offset,
1136
1136
CM_STATIC_ERROR (lsc_check_simt<N>(), " unexpected number of channels" );
1137
1137
CM_STATIC_ERROR ((lsc_check_cache_hint<LSCAction::Atomic, L1H, L3H>()),
1138
1138
" unsupported cache hint" );
1139
+ CM_STATIC_ERROR (lsc_check_atomic_src<T>(),
1140
+ " unsupported type for lsc atomic source or dest arguments" );
1139
1141
constexpr DataSize _DS = lsc_expand_ds (lsc_data_size<T, DS>());
1140
1142
constexpr bool _Transposed = false ;
1141
1143
using _IntRetTy = decltype (lsc_data_type_ext<T, N, VS>());
@@ -1166,6 +1168,8 @@ cm_atomic(SurfaceIndex Idx, vector<unsigned, N> Offset,
1166
1168
CM_STATIC_ERROR (lsc_check_simt<N>(), " unexpected number of channels" );
1167
1169
CM_STATIC_ERROR ((lsc_check_cache_hint<LSCAction::Atomic, L1H, L3H>()),
1168
1170
" unsupported cache hint" );
1171
+ CM_STATIC_ERROR (lsc_check_atomic_src<T>(),
1172
+ " unsupported type for lsc atomic source or dest arguments" );
1169
1173
constexpr DataSize _DS = lsc_expand_ds (lsc_data_size<T, DS>());
1170
1174
using _IntRetTy = decltype (lsc_data_type_ext<T, N, VS>());
1171
1175
using _SrcTy = decltype (lsc_data_type_ext<T, N, VS>());
@@ -1223,6 +1227,8 @@ cm_ptr_atomic(T *Ptr, vector<unsigned, N> Offset,
1223
1227
CM_STATIC_ERROR (lsc_check_simt<N>(), " unexpected number of channels" );
1224
1228
CM_STATIC_ERROR ((lsc_check_cache_hint<LSCAction::Atomic, L1H, L3H>()),
1225
1229
" unsupported cache hint" );
1230
+ CM_STATIC_ERROR (lsc_check_atomic_src<T>(),
1231
+ " unsupported type for lsc atomic source or dest arguments" );
1226
1232
constexpr DataSize _DS = lsc_expand_ds (lsc_data_size<T, DS>());
1227
1233
constexpr bool _Transposed = false ;
1228
1234
uint64_t _Addr = (uint64_t )Ptr ;
@@ -1254,6 +1260,8 @@ cm_ptr_atomic(T *Ptr, vector<unsigned, N> Offset,
1254
1260
CM_STATIC_ERROR (lsc_check_simt<N>(), " unexpected number of channels" );
1255
1261
CM_STATIC_ERROR ((lsc_check_cache_hint<LSCAction::Atomic, L1H, L3H>()),
1256
1262
" unsupported cache hint" );
1263
+ CM_STATIC_ERROR (lsc_check_atomic_src<T>(),
1264
+ " unsupported type for lsc atomic source or dest arguments" );
1257
1265
constexpr DataSize _DS = lsc_expand_ds (lsc_data_size<T, DS>());
1258
1266
using _IntRetTy = decltype (lsc_data_type_ext<T, N, VS>());
1259
1267
using _SrcTy = decltype (lsc_data_type_ext<T, N, VS>());
@@ -1336,6 +1344,8 @@ cm_atomic_slm(vector<unsigned, N> Offset,
1336
1344
CM_STATIC_ERROR (lsc_check_simt<N>(), " unexpected number of channels" );
1337
1345
CM_STATIC_ERROR ((lsc_check_cache_hint<LSCAction::Atomic, L1H, L3H>()),
1338
1346
" unsupported cache hint" );
1347
+ CM_STATIC_ERROR (lsc_check_atomic_src<T>(),
1348
+ " unsupported type for lsc atomic source or dest arguments" );
1339
1349
constexpr DataSize _DS = lsc_expand_ds (lsc_data_size<T, DS>());
1340
1350
constexpr bool _Transposed = false ;
1341
1351
using _IntRetTy = decltype (lsc_data_type_ext<T, N, VS>());
@@ -1366,6 +1376,8 @@ cm_atomic_slm(vector<unsigned, N> Offset,
1366
1376
CM_STATIC_ERROR (lsc_check_simt<N>(), " unexpected number of channels" );
1367
1377
CM_STATIC_ERROR ((lsc_check_cache_hint<LSCAction::Atomic, L1H, L3H>()),
1368
1378
" unsupported cache hint" );
1379
+ CM_STATIC_ERROR (lsc_check_atomic_src<T>(),
1380
+ " unsupported type for lsc atomic source or dest arguments" );
1369
1381
constexpr DataSize _DS = lsc_expand_ds (lsc_data_size<T, DS>());
1370
1382
using _IntRetTy = decltype (lsc_data_type_ext<T, N, VS>());
1371
1383
using _SrcTy = decltype (lsc_data_type_ext<T, N, VS>());
0 commit comments