blob: 692815a0f000ee5d1869b2af9ef9f6c9b8c21298 [file] [log] [blame]
// RUN: (iree-run-mlir --iree-hal-target-backends=vmvx %s --function_input=f32=-2) | FileCheck %s
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir --iree-hal-target-backends=vulkan-spirv %s --function_input=f32=-2 | FileCheck %s)
// RUN: iree-run-mlir --iree-hal-target-backends=llvm-cpu %s --function_input=f32=-2 | FileCheck %s
// CHECK-LABEL: EXEC @abs
func.func @abs(%input : tensor<f32>) -> (tensor<f32>) {
%result = math.absf %input : tensor<f32>
return %result : tensor<f32>
}
// CHECK: f32=2