[Mlir-commits] [mlir] [mlir][AMDGPU] Add scaled floating point conversion ops fp8 (PR #141554)

Krzysztof Drewniak llvmlistbot at llvm.org
Wed Jun 4 12:31:18 PDT 2025


================
@@ -112,6 +112,38 @@ def AMDGPU_ExtPackedFp8Op :
   }];
 }
 
+def AMDGPU_ScaledExtPackedOp
+    : AMDGPU_Op<"scaled_ext_packed", [Pure]>,
+      Arguments<(
+          ins AnyTypeOf<[VectorOfLengthAndType<[2, 3, 4], [F8E5M2, F8E4M3FN]>,
+                         VectorOfLengthAndType<[2, 3, 4, 5, 6, 7, 8],
----------------
krzysz00 wrote:

Yeah, I suppose odd numbers work, since you can just `zext`

https://github.com/llvm/llvm-project/pull/141554


More information about the Mlir-commits mailing list