1/* 2 * Copyright (c) 2012-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 1258 unchanged lines hidden (view full) --- 1267 } 1268 int numSrcRegOperands() { return 0; } 1269 int numDstRegOperands() { return 0; } 1270 int getNumOperands() { return 2; } 1271 }; 1272 1273 template<typename T> T heynot(T arg) { return ~arg; } 1274 template<> inline bool heynot<bool>(bool arg) { return !arg; } |
1275 1276 1277 /* Explicitly declare template static member variables to avoid 1278 * warnings in some clang versions 1279 */ 1280 template<> const char *B1::label; 1281 template<> const char *B8::label; 1282 template<> const char *B16::label; 1283 template<> const char *B32::label; 1284 template<> const char *B64::label; 1285 template<> const char *S8::label; 1286 template<> const char *S16::label; 1287 template<> const char *S32::label; 1288 template<> const char *S64::label; 1289 template<> const char *U8::label; 1290 template<> const char *U16::label; 1291 template<> const char *U32::label; 1292 template<> const char *U64::label; 1293 template<> const char *F32::label; 1294 template<> const char *F64::label; 1295 |
1296} // namespace HsailISA 1297 1298#endif // __ARCH_HSAIL_INSTS_DECL_HH__ |