[Mlir-commits] [llvm] [mlir] [mlir] Lower math dialect later in gpu-lower-to-nvvm-pipeline (PR #78556)

Adam Paszke llvmlistbot at llvm.org
Thu Jan 18 01:55:24 PST 2024


================
@@ -0,0 +1,18 @@
+// RUN: mlir-opt -gpu-lower-to-nvvm-pipeline="cubin-format=isa" -split-input-file %s | FileCheck %s
+
+// CHECK-LABEL: llvm.func @test_math(%arg0: f32) {
+func.func @test_math(%arg0 : f32) {
+    %c2 = arith.constant 2 : index
+    %c1 = arith.constant 1 : index
----------------
apaszke wrote:

Perhaps add an exp here as well and check that it lowers to llvm intrinsics?

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


More information about the Mlir-commits mailing list