opcodes.inc 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. // Copyright 2021 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. // opcode name, return type, arg1 type, arg2 type, arg3 type, arg4 type, arg4 type, ...
  5. OPCODE(Phi, Opaque, )
  6. OPCODE(Identity, Opaque, Opaque, )
  7. OPCODE(Void, Void, )
  8. // Control flow
  9. OPCODE(Branch, Void, Label, )
  10. OPCODE(BranchConditional, Void, U1, Label, Label, )
  11. OPCODE(LoopMerge, Void, Label, Label, )
  12. OPCODE(SelectionMerge, Void, Label, )
  13. OPCODE(Return, Void, )
  14. OPCODE(Unreachable, Void, )
  15. OPCODE(DemoteToHelperInvocation, Void, Label, )
  16. // Barriers
  17. OPCODE(MemoryBarrier, Void, )
  18. // Special operations
  19. OPCODE(Prologue, Void, )
  20. OPCODE(Epilogue, Void, )
  21. // Context getters/setters
  22. OPCODE(GetRegister, U32, Reg, )
  23. OPCODE(SetRegister, Void, Reg, U32, )
  24. OPCODE(GetPred, U1, Pred, )
  25. OPCODE(SetPred, Void, Pred, U1, )
  26. OPCODE(GetGotoVariable, U1, U32, )
  27. OPCODE(SetGotoVariable, Void, U32, U1, )
  28. OPCODE(GetIndirectBranchVariable, U32, )
  29. OPCODE(SetIndirectBranchVariable, Void, U32, )
  30. OPCODE(GetCbufU8, U32, U32, U32, )
  31. OPCODE(GetCbufS8, U32, U32, U32, )
  32. OPCODE(GetCbufU16, U32, U32, U32, )
  33. OPCODE(GetCbufS16, U32, U32, U32, )
  34. OPCODE(GetCbufU32, U32, U32, U32, )
  35. OPCODE(GetCbufF32, F32, U32, U32, )
  36. OPCODE(GetCbufU64, U64, U32, U32, )
  37. OPCODE(GetAttribute, F32, Attribute, )
  38. OPCODE(SetAttribute, Void, Attribute, F32, )
  39. OPCODE(GetAttributeIndexed, F32, U32, )
  40. OPCODE(SetAttributeIndexed, Void, U32, F32, )
  41. OPCODE(SetFragColor, Void, U32, U32, F32, )
  42. OPCODE(SetFragDepth, Void, F32, )
  43. OPCODE(GetZFlag, U1, Void, )
  44. OPCODE(GetSFlag, U1, Void, )
  45. OPCODE(GetCFlag, U1, Void, )
  46. OPCODE(GetOFlag, U1, Void, )
  47. OPCODE(GetFCSMFlag, U1, Void, )
  48. OPCODE(GetTAFlag, U1, Void, )
  49. OPCODE(GetTRFlag, U1, Void, )
  50. OPCODE(GetMXFlag, U1, Void, )
  51. OPCODE(SetZFlag, Void, U1, )
  52. OPCODE(SetSFlag, Void, U1, )
  53. OPCODE(SetCFlag, Void, U1, )
  54. OPCODE(SetOFlag, Void, U1, )
  55. OPCODE(SetFCSMFlag, Void, U1, )
  56. OPCODE(SetTAFlag, Void, U1, )
  57. OPCODE(SetTRFlag, Void, U1, )
  58. OPCODE(SetMXFlag, Void, U1, )
  59. OPCODE(WorkgroupId, U32x3, )
  60. OPCODE(LocalInvocationId, U32x3, )
  61. // Undefined
  62. OPCODE(UndefU1, U1, )
  63. OPCODE(UndefU8, U8, )
  64. OPCODE(UndefU16, U16, )
  65. OPCODE(UndefU32, U32, )
  66. OPCODE(UndefU64, U64, )
  67. // Memory operations
  68. OPCODE(LoadGlobalU8, U32, U64, )
  69. OPCODE(LoadGlobalS8, U32, U64, )
  70. OPCODE(LoadGlobalU16, U32, U64, )
  71. OPCODE(LoadGlobalS16, U32, U64, )
  72. OPCODE(LoadGlobal32, U32, U64, )
  73. OPCODE(LoadGlobal64, U32x2, U64, )
  74. OPCODE(LoadGlobal128, U32x4, U64, )
  75. OPCODE(WriteGlobalU8, Void, U64, U32, )
  76. OPCODE(WriteGlobalS8, Void, U64, U32, )
  77. OPCODE(WriteGlobalU16, Void, U64, U32, )
  78. OPCODE(WriteGlobalS16, Void, U64, U32, )
  79. OPCODE(WriteGlobal32, Void, U64, U32, )
  80. OPCODE(WriteGlobal64, Void, U64, U32x2, )
  81. OPCODE(WriteGlobal128, Void, U64, U32x4, )
  82. // Storage buffer operations
  83. OPCODE(LoadStorageU8, U32, U32, U32, )
  84. OPCODE(LoadStorageS8, U32, U32, U32, )
  85. OPCODE(LoadStorageU16, U32, U32, U32, )
  86. OPCODE(LoadStorageS16, U32, U32, U32, )
  87. OPCODE(LoadStorage32, U32, U32, U32, )
  88. OPCODE(LoadStorage64, U32x2, U32, U32, )
  89. OPCODE(LoadStorage128, U32x4, U32, U32, )
  90. OPCODE(WriteStorageU8, Void, U32, U32, U32, )
  91. OPCODE(WriteStorageS8, Void, U32, U32, U32, )
  92. OPCODE(WriteStorageU16, Void, U32, U32, U32, )
  93. OPCODE(WriteStorageS16, Void, U32, U32, U32, )
  94. OPCODE(WriteStorage32, Void, U32, U32, U32, )
  95. OPCODE(WriteStorage64, Void, U32, U32, U32x2, )
  96. OPCODE(WriteStorage128, Void, U32, U32, U32x4, )
  97. // Local memory operations
  98. OPCODE(LoadLocal, U32, U32, )
  99. OPCODE(WriteLocal, Void, U32, U32, )
  100. // Shared memory operations
  101. OPCODE(LoadSharedU8, U32, U32, )
  102. OPCODE(LoadSharedS8, U32, U32, )
  103. OPCODE(LoadSharedU16, U32, U32, )
  104. OPCODE(LoadSharedS16, U32, U32, )
  105. OPCODE(LoadSharedU32, U32, U32, )
  106. OPCODE(LoadSharedU64, U32x2, U32, )
  107. OPCODE(LoadSharedU128, U32x4, U32, )
  108. OPCODE(WriteSharedU8, Void, U32, U32, )
  109. OPCODE(WriteSharedU16, Void, U32, U32, )
  110. OPCODE(WriteSharedU32, Void, U32, U32, )
  111. OPCODE(WriteSharedU64, Void, U32, U32x2, )
  112. OPCODE(WriteSharedU128, Void, U32, U32x4, )
  113. // Vector utility
  114. OPCODE(CompositeConstructU32x2, U32x2, U32, U32, )
  115. OPCODE(CompositeConstructU32x3, U32x3, U32, U32, U32, )
  116. OPCODE(CompositeConstructU32x4, U32x4, U32, U32, U32, U32, )
  117. OPCODE(CompositeExtractU32x2, U32, U32x2, U32, )
  118. OPCODE(CompositeExtractU32x3, U32, U32x3, U32, )
  119. OPCODE(CompositeExtractU32x4, U32, U32x4, U32, )
  120. OPCODE(CompositeInsertU32x2, U32x2, U32x2, U32, U32, )
  121. OPCODE(CompositeInsertU32x3, U32x3, U32x3, U32, U32, )
  122. OPCODE(CompositeInsertU32x4, U32x4, U32x4, U32, U32, )
  123. OPCODE(CompositeConstructF16x2, F16x2, F16, F16, )
  124. OPCODE(CompositeConstructF16x3, F16x3, F16, F16, F16, )
  125. OPCODE(CompositeConstructF16x4, F16x4, F16, F16, F16, F16, )
  126. OPCODE(CompositeExtractF16x2, F16, F16x2, U32, )
  127. OPCODE(CompositeExtractF16x3, F16, F16x3, U32, )
  128. OPCODE(CompositeExtractF16x4, F16, F16x4, U32, )
  129. OPCODE(CompositeInsertF16x2, F16x2, F16x2, F16, U32, )
  130. OPCODE(CompositeInsertF16x3, F16x3, F16x3, F16, U32, )
  131. OPCODE(CompositeInsertF16x4, F16x4, F16x4, F16, U32, )
  132. OPCODE(CompositeConstructF32x2, F32x2, F32, F32, )
  133. OPCODE(CompositeConstructF32x3, F32x3, F32, F32, F32, )
  134. OPCODE(CompositeConstructF32x4, F32x4, F32, F32, F32, F32, )
  135. OPCODE(CompositeExtractF32x2, F32, F32x2, U32, )
  136. OPCODE(CompositeExtractF32x3, F32, F32x3, U32, )
  137. OPCODE(CompositeExtractF32x4, F32, F32x4, U32, )
  138. OPCODE(CompositeInsertF32x2, F32x2, F32x2, F32, U32, )
  139. OPCODE(CompositeInsertF32x3, F32x3, F32x3, F32, U32, )
  140. OPCODE(CompositeInsertF32x4, F32x4, F32x4, F32, U32, )
  141. OPCODE(CompositeConstructF64x2, F64x2, F64, F64, )
  142. OPCODE(CompositeConstructF64x3, F64x3, F64, F64, F64, )
  143. OPCODE(CompositeConstructF64x4, F64x4, F64, F64, F64, F64, )
  144. OPCODE(CompositeExtractF64x2, F64, F64x2, U32, )
  145. OPCODE(CompositeExtractF64x3, F64, F64x3, U32, )
  146. OPCODE(CompositeExtractF64x4, F64, F64x4, U32, )
  147. OPCODE(CompositeInsertF64x2, F64x2, F64x2, F64, U32, )
  148. OPCODE(CompositeInsertF64x3, F64x3, F64x3, F64, U32, )
  149. OPCODE(CompositeInsertF64x4, F64x4, F64x4, F64, U32, )
  150. // Select operations
  151. OPCODE(SelectU1, U1, U1, U1, U1, )
  152. OPCODE(SelectU8, U8, U1, U8, U8, )
  153. OPCODE(SelectU16, U16, U1, U16, U16, )
  154. OPCODE(SelectU32, U32, U1, U32, U32, )
  155. OPCODE(SelectU64, U64, U1, U64, U64, )
  156. OPCODE(SelectF16, F16, U1, F16, F16, )
  157. OPCODE(SelectF32, F32, U1, F32, F32, )
  158. OPCODE(SelectF64, F64, U1, F64, F64, )
  159. // Bitwise conversions
  160. OPCODE(BitCastU16F16, U16, F16, )
  161. OPCODE(BitCastU32F32, U32, F32, )
  162. OPCODE(BitCastU64F64, U64, F64, )
  163. OPCODE(BitCastF16U16, F16, U16, )
  164. OPCODE(BitCastF32U32, F32, U32, )
  165. OPCODE(BitCastF64U64, F64, U64, )
  166. OPCODE(PackUint2x32, U64, U32x2, )
  167. OPCODE(UnpackUint2x32, U32x2, U64, )
  168. OPCODE(PackFloat2x16, U32, F16x2, )
  169. OPCODE(UnpackFloat2x16, F16x2, U32, )
  170. OPCODE(PackHalf2x16, U32, F32x2, )
  171. OPCODE(UnpackHalf2x16, F32x2, U32, )
  172. OPCODE(PackDouble2x32, F64, U32x2, )
  173. OPCODE(UnpackDouble2x32, U32x2, F64, )
  174. // Pseudo-operation, handled specially at final emit
  175. OPCODE(GetZeroFromOp, U1, Opaque, )
  176. OPCODE(GetSignFromOp, U1, Opaque, )
  177. OPCODE(GetCarryFromOp, U1, Opaque, )
  178. OPCODE(GetOverflowFromOp, U1, Opaque, )
  179. OPCODE(GetSparseFromOp, U1, Opaque, )
  180. OPCODE(GetInBoundsFromOp, U1, Opaque, )
  181. // Floating-point operations
  182. OPCODE(FPAbs16, F16, F16, )
  183. OPCODE(FPAbs32, F32, F32, )
  184. OPCODE(FPAbs64, F64, F64, )
  185. OPCODE(FPAdd16, F16, F16, F16, )
  186. OPCODE(FPAdd32, F32, F32, F32, )
  187. OPCODE(FPAdd64, F64, F64, F64, )
  188. OPCODE(FPFma16, F16, F16, F16, F16, )
  189. OPCODE(FPFma32, F32, F32, F32, F32, )
  190. OPCODE(FPFma64, F64, F64, F64, F64, )
  191. OPCODE(FPMax32, F32, F32, F32, )
  192. OPCODE(FPMax64, F64, F64, F64, )
  193. OPCODE(FPMin32, F32, F32, F32, )
  194. OPCODE(FPMin64, F64, F64, F64, )
  195. OPCODE(FPMul16, F16, F16, F16, )
  196. OPCODE(FPMul32, F32, F32, F32, )
  197. OPCODE(FPMul64, F64, F64, F64, )
  198. OPCODE(FPNeg16, F16, F16, )
  199. OPCODE(FPNeg32, F32, F32, )
  200. OPCODE(FPNeg64, F64, F64, )
  201. OPCODE(FPRecip32, F32, F32, )
  202. OPCODE(FPRecip64, F64, F64, )
  203. OPCODE(FPRecipSqrt32, F32, F32, )
  204. OPCODE(FPRecipSqrt64, F64, F64, )
  205. OPCODE(FPSqrt, F32, F32, )
  206. OPCODE(FPSin, F32, F32, )
  207. OPCODE(FPExp2, F32, F32, )
  208. OPCODE(FPCos, F32, F32, )
  209. OPCODE(FPLog2, F32, F32, )
  210. OPCODE(FPSaturate16, F16, F16, )
  211. OPCODE(FPSaturate32, F32, F32, )
  212. OPCODE(FPSaturate64, F64, F64, )
  213. OPCODE(FPClamp16, F16, F16, F16, F16, )
  214. OPCODE(FPClamp32, F32, F32, F32, F32, )
  215. OPCODE(FPClamp64, F64, F64, F64, F64, )
  216. OPCODE(FPRoundEven16, F16, F16, )
  217. OPCODE(FPRoundEven32, F32, F32, )
  218. OPCODE(FPRoundEven64, F64, F64, )
  219. OPCODE(FPFloor16, F16, F16, )
  220. OPCODE(FPFloor32, F32, F32, )
  221. OPCODE(FPFloor64, F64, F64, )
  222. OPCODE(FPCeil16, F16, F16, )
  223. OPCODE(FPCeil32, F32, F32, )
  224. OPCODE(FPCeil64, F64, F64, )
  225. OPCODE(FPTrunc16, F16, F16, )
  226. OPCODE(FPTrunc32, F32, F32, )
  227. OPCODE(FPTrunc64, F64, F64, )
  228. OPCODE(FPOrdEqual16, U1, F16, F16, )
  229. OPCODE(FPOrdEqual32, U1, F32, F32, )
  230. OPCODE(FPOrdEqual64, U1, F64, F64, )
  231. OPCODE(FPUnordEqual16, U1, F16, F16, )
  232. OPCODE(FPUnordEqual32, U1, F32, F32, )
  233. OPCODE(FPUnordEqual64, U1, F64, F64, )
  234. OPCODE(FPOrdNotEqual16, U1, F16, F16, )
  235. OPCODE(FPOrdNotEqual32, U1, F32, F32, )
  236. OPCODE(FPOrdNotEqual64, U1, F64, F64, )
  237. OPCODE(FPUnordNotEqual16, U1, F16, F16, )
  238. OPCODE(FPUnordNotEqual32, U1, F32, F32, )
  239. OPCODE(FPUnordNotEqual64, U1, F64, F64, )
  240. OPCODE(FPOrdLessThan16, U1, F16, F16, )
  241. OPCODE(FPOrdLessThan32, U1, F32, F32, )
  242. OPCODE(FPOrdLessThan64, U1, F64, F64, )
  243. OPCODE(FPUnordLessThan16, U1, F16, F16, )
  244. OPCODE(FPUnordLessThan32, U1, F32, F32, )
  245. OPCODE(FPUnordLessThan64, U1, F64, F64, )
  246. OPCODE(FPOrdGreaterThan16, U1, F16, F16, )
  247. OPCODE(FPOrdGreaterThan32, U1, F32, F32, )
  248. OPCODE(FPOrdGreaterThan64, U1, F64, F64, )
  249. OPCODE(FPUnordGreaterThan16, U1, F16, F16, )
  250. OPCODE(FPUnordGreaterThan32, U1, F32, F32, )
  251. OPCODE(FPUnordGreaterThan64, U1, F64, F64, )
  252. OPCODE(FPOrdLessThanEqual16, U1, F16, F16, )
  253. OPCODE(FPOrdLessThanEqual32, U1, F32, F32, )
  254. OPCODE(FPOrdLessThanEqual64, U1, F64, F64, )
  255. OPCODE(FPUnordLessThanEqual16, U1, F16, F16, )
  256. OPCODE(FPUnordLessThanEqual32, U1, F32, F32, )
  257. OPCODE(FPUnordLessThanEqual64, U1, F64, F64, )
  258. OPCODE(FPOrdGreaterThanEqual16, U1, F16, F16, )
  259. OPCODE(FPOrdGreaterThanEqual32, U1, F32, F32, )
  260. OPCODE(FPOrdGreaterThanEqual64, U1, F64, F64, )
  261. OPCODE(FPUnordGreaterThanEqual16, U1, F16, F16, )
  262. OPCODE(FPUnordGreaterThanEqual32, U1, F32, F32, )
  263. OPCODE(FPUnordGreaterThanEqual64, U1, F64, F64, )
  264. OPCODE(FPIsNan16, U1, F16, )
  265. OPCODE(FPIsNan32, U1, F32, )
  266. OPCODE(FPIsNan64, U1, F64, )
  267. // Integer operations
  268. OPCODE(IAdd32, U32, U32, U32, )
  269. OPCODE(IAdd64, U64, U64, U64, )
  270. OPCODE(ISub32, U32, U32, U32, )
  271. OPCODE(ISub64, U64, U64, U64, )
  272. OPCODE(IMul32, U32, U32, U32, )
  273. OPCODE(INeg32, U32, U32, )
  274. OPCODE(INeg64, U64, U64, )
  275. OPCODE(IAbs32, U32, U32, )
  276. OPCODE(IAbs64, U64, U64, )
  277. OPCODE(ShiftLeftLogical32, U32, U32, U32, )
  278. OPCODE(ShiftLeftLogical64, U64, U64, U32, )
  279. OPCODE(ShiftRightLogical32, U32, U32, U32, )
  280. OPCODE(ShiftRightLogical64, U64, U64, U32, )
  281. OPCODE(ShiftRightArithmetic32, U32, U32, U32, )
  282. OPCODE(ShiftRightArithmetic64, U64, U64, U32, )
  283. OPCODE(BitwiseAnd32, U32, U32, U32, )
  284. OPCODE(BitwiseOr32, U32, U32, U32, )
  285. OPCODE(BitwiseXor32, U32, U32, U32, )
  286. OPCODE(BitFieldInsert, U32, U32, U32, U32, U32, )
  287. OPCODE(BitFieldSExtract, U32, U32, U32, U32, )
  288. OPCODE(BitFieldUExtract, U32, U32, U32, U32, )
  289. OPCODE(BitReverse32, U32, U32, )
  290. OPCODE(BitCount32, U32, U32, )
  291. OPCODE(BitwiseNot32, U32, U32, )
  292. OPCODE(FindSMsb32, U32, U32, )
  293. OPCODE(FindUMsb32, U32, U32, )
  294. OPCODE(SMin32, U32, U32, U32, )
  295. OPCODE(UMin32, U32, U32, U32, )
  296. OPCODE(SMax32, U32, U32, U32, )
  297. OPCODE(UMax32, U32, U32, U32, )
  298. OPCODE(SClamp32, U32, U32, U32, U32, )
  299. OPCODE(UClamp32, U32, U32, U32, U32, )
  300. OPCODE(SLessThan, U1, U32, U32, )
  301. OPCODE(ULessThan, U1, U32, U32, )
  302. OPCODE(IEqual, U1, U32, U32, )
  303. OPCODE(SLessThanEqual, U1, U32, U32, )
  304. OPCODE(ULessThanEqual, U1, U32, U32, )
  305. OPCODE(SGreaterThan, U1, U32, U32, )
  306. OPCODE(UGreaterThan, U1, U32, U32, )
  307. OPCODE(INotEqual, U1, U32, U32, )
  308. OPCODE(SGreaterThanEqual, U1, U32, U32, )
  309. OPCODE(UGreaterThanEqual, U1, U32, U32, )
  310. // Logical operations
  311. OPCODE(LogicalOr, U1, U1, U1, )
  312. OPCODE(LogicalAnd, U1, U1, U1, )
  313. OPCODE(LogicalXor, U1, U1, U1, )
  314. OPCODE(LogicalNot, U1, U1, )
  315. // Conversion operations
  316. OPCODE(ConvertS16F16, U32, F16, )
  317. OPCODE(ConvertS16F32, U32, F32, )
  318. OPCODE(ConvertS16F64, U32, F64, )
  319. OPCODE(ConvertS32F16, U32, F16, )
  320. OPCODE(ConvertS32F32, U32, F32, )
  321. OPCODE(ConvertS32F64, U32, F64, )
  322. OPCODE(ConvertS64F16, U64, F16, )
  323. OPCODE(ConvertS64F32, U64, F32, )
  324. OPCODE(ConvertS64F64, U64, F64, )
  325. OPCODE(ConvertU16F16, U32, F16, )
  326. OPCODE(ConvertU16F32, U32, F32, )
  327. OPCODE(ConvertU16F64, U32, F64, )
  328. OPCODE(ConvertU32F16, U32, F16, )
  329. OPCODE(ConvertU32F32, U32, F32, )
  330. OPCODE(ConvertU32F64, U32, F64, )
  331. OPCODE(ConvertU64F16, U64, F16, )
  332. OPCODE(ConvertU64F32, U64, F32, )
  333. OPCODE(ConvertU64F64, U64, F64, )
  334. OPCODE(ConvertU64U32, U64, U32, )
  335. OPCODE(ConvertU32U64, U32, U64, )
  336. OPCODE(ConvertF16F32, F16, F32, )
  337. OPCODE(ConvertF32F16, F32, F16, )
  338. OPCODE(ConvertF32F64, F32, F64, )
  339. OPCODE(ConvertF64F32, F64, F32, )
  340. OPCODE(ConvertF16S8, F16, U32, )
  341. OPCODE(ConvertF16S16, F16, U32, )
  342. OPCODE(ConvertF16S32, F16, U32, )
  343. OPCODE(ConvertF16S64, F16, U64, )
  344. OPCODE(ConvertF16U8, F16, U32, )
  345. OPCODE(ConvertF16U16, F16, U32, )
  346. OPCODE(ConvertF16U32, F16, U32, )
  347. OPCODE(ConvertF16U64, F16, U64, )
  348. OPCODE(ConvertF32S8, F32, U32, )
  349. OPCODE(ConvertF32S16, F32, U32, )
  350. OPCODE(ConvertF32S32, F32, U32, )
  351. OPCODE(ConvertF32S64, F32, U64, )
  352. OPCODE(ConvertF32U8, F32, U32, )
  353. OPCODE(ConvertF32U16, F32, U32, )
  354. OPCODE(ConvertF32U32, F32, U32, )
  355. OPCODE(ConvertF32U64, F32, U64, )
  356. OPCODE(ConvertF64S8, F64, U32, )
  357. OPCODE(ConvertF64S16, F64, U32, )
  358. OPCODE(ConvertF64S32, F64, U32, )
  359. OPCODE(ConvertF64S64, F64, U64, )
  360. OPCODE(ConvertF64U8, F64, U32, )
  361. OPCODE(ConvertF64U16, F64, U32, )
  362. OPCODE(ConvertF64U32, F64, U32, )
  363. OPCODE(ConvertF64U64, F64, U64, )
  364. // Image operations
  365. OPCODE(BindlessImageSampleImplicitLod, F32x4, U32, Opaque, Opaque, Opaque, )
  366. OPCODE(BindlessImageSampleExplicitLod, F32x4, U32, Opaque, Opaque, Opaque, )
  367. OPCODE(BindlessImageSampleDrefImplicitLod, F32, U32, Opaque, F32, Opaque, Opaque, )
  368. OPCODE(BindlessImageSampleDrefExplicitLod, F32, U32, Opaque, F32, Opaque, Opaque, )
  369. OPCODE(BindlessImageGather, F32x4, U32, Opaque, Opaque, Opaque, )
  370. OPCODE(BindlessImageGatherDref, F32x4, U32, Opaque, Opaque, Opaque, F32, )
  371. OPCODE(BindlessImageFetch, F32x4, U32, Opaque, Opaque, U32, Opaque, )
  372. OPCODE(BindlessImageQueryDimensions, U32x4, U32, U32, )
  373. OPCODE(BindlessImageQueryLod, F32x4, U32, Opaque, )
  374. OPCODE(BindlessImageGradient, F32x4, U32, Opaque, Opaque, Opaque, Opaque, )
  375. OPCODE(BoundImageSampleImplicitLod, F32x4, U32, Opaque, Opaque, Opaque, )
  376. OPCODE(BoundImageSampleExplicitLod, F32x4, U32, Opaque, Opaque, Opaque, )
  377. OPCODE(BoundImageSampleDrefImplicitLod, F32, U32, Opaque, F32, Opaque, Opaque, )
  378. OPCODE(BoundImageSampleDrefExplicitLod, F32, U32, Opaque, F32, Opaque, Opaque, )
  379. OPCODE(BoundImageGather, F32x4, U32, Opaque, Opaque, Opaque, )
  380. OPCODE(BoundImageGatherDref, F32x4, U32, Opaque, Opaque, Opaque, F32, )
  381. OPCODE(BoundImageFetch, F32x4, U32, Opaque, Opaque, U32, Opaque, )
  382. OPCODE(BoundImageQueryDimensions, U32x4, U32, U32, )
  383. OPCODE(BoundImageQueryLod, F32x4, U32, Opaque, )
  384. OPCODE(BoundImageGradient, F32x4, U32, Opaque, Opaque, Opaque, Opaque, )
  385. OPCODE(ImageSampleImplicitLod, F32x4, U32, Opaque, Opaque, Opaque, )
  386. OPCODE(ImageSampleExplicitLod, F32x4, U32, Opaque, Opaque, Opaque, )
  387. OPCODE(ImageSampleDrefImplicitLod, F32, U32, Opaque, F32, Opaque, Opaque, )
  388. OPCODE(ImageSampleDrefExplicitLod, F32, U32, Opaque, F32, Opaque, Opaque, )
  389. OPCODE(ImageGather, F32x4, U32, Opaque, Opaque, Opaque, )
  390. OPCODE(ImageGatherDref, F32x4, U32, Opaque, Opaque, Opaque, F32, )
  391. OPCODE(ImageFetch, F32x4, U32, Opaque, Opaque, U32, Opaque, )
  392. OPCODE(ImageQueryDimensions, U32x4, U32, U32, )
  393. OPCODE(ImageQueryLod, F32x4, U32, Opaque, )
  394. OPCODE(ImageGradient, F32x4, U32, Opaque, Opaque, Opaque, Opaque, )
  395. // Warp operations
  396. OPCODE(VoteAll, U1, U1, )
  397. OPCODE(VoteAny, U1, U1, )
  398. OPCODE(VoteEqual, U1, U1, )
  399. OPCODE(SubgroupBallot, U32, U1, )
  400. OPCODE(ShuffleIndex, U32, U32, U32, U32, U32, )
  401. OPCODE(ShuffleUp, U32, U32, U32, U32, U32, )
  402. OPCODE(ShuffleDown, U32, U32, U32, U32, U32, )
  403. OPCODE(ShuffleButterfly, U32, U32, U32, U32, U32, )
  404. OPCODE(FSwizzleAdd, F32, F32, F32, U32, )