blob: d25029497e006af016f39876f168381c8dbd525c [file] [log] [blame]
Stella Laurenzod318c542023-04-27 17:08:22 -07001// RUN: (iree-run-mlir --Xcompiler,iree-hal-target-backends=vmvx %s --input=f32=-2) | FileCheck %s
2// RUN: iree-run-mlir --Xcompiler,iree-hal-target-backends=llvm-cpu %s --input=f32=-2 | FileCheck %s
Ben Vanik32b31012021-01-24 10:50:59 -08003
4// CHECK-LABEL: EXEC @abs
Thomasf0f64ca2022-03-30 10:38:01 -07005func.func @abs(%input : tensor<f32>) -> (tensor<f32>) {
Thomas4c2029f2022-08-15 19:20:14 -07006 %result = math.absf %input : tensor<f32>
CindyLiuaf7dfeb2021-06-08 22:31:37 +00007 return %result : tensor<f32>
Ben Vanik32b31012021-01-24 10:50:59 -08008}
CindyLiuaf7dfeb2021-06-08 22:31:37 +00009// CHECK: f32=2