brintos

brintos / llvm-project-archived public Read only

0
0
Text · 670 B · efffcaa Raw
26 lines · plain
1// RUN: mlir-opt %s \2// RUN:  | mlir-opt -gpu-lower-to-nvvm-pipeline="allow-pattern-rollback=0" -debug-only=serialize-to-isa \3// RUN:  2>&1 | FileCheck %s4 5// CHECK-LABEL: Generated by LLVM NVPTX Back-End6// CHECK: .visible .func kernel_a()7// CHECK: ret;8gpu.module @bar {9  llvm.func @kernel_a()10    attributes  { gpu.kernel } {11    llvm.return12  }13}14 15// CHECK-LABEL: Generated by LLVM NVPTX Back-End16// CHECK: .visible .func  ({{.+}}) fma(17// CHECK: fma.rn.f3218 19gpu.module @foo {20  llvm.func @fma(%arg0: f32, %arg1: f32) -> f3221    attributes { gpu.kernel } {22    %res = llvm.intr.fma (%arg0, %arg1, %arg1) : (f32, f32, f32) -> f3223    llvm.return %res : f3224  }25}26