blob: b772c8f23e688f6b218ca6dd5eb3b403d3a88003 [file] [log] [blame]
Ben Vanik9461d3b2023-04-18 16:39:25 -07001// RUN: (iree-compile --iree-hal-target-backends=vmvx %s | iree-run-module --module=- --function=scalar --input=42) | FileCheck %s
2// RUN: iree-compile --iree-hal-target-backends=vmvx %s | iree-benchmark-module --device=local-task --module=- --function=scalar --input=42 | FileCheck --check-prefix=BENCHMARK %s
Stella Laurenzod318c542023-04-27 17:08:22 -07003// RUN: (iree-run-mlir --Xcompiler,iree-hal-target-backends=vmvx %s --input=42) | FileCheck %s
Geoffrey Martin-Noblee64004d2020-02-03 16:13:46 -08004
Geoffrey Martin-Noble8bfc7e92020-11-04 10:25:46 -08005// BENCHMARK-LABEL: BM_scalar
Geoffrey Martin-Noble43d9f3b2020-02-03 21:46:10 -08006// CHECK-LABEL: EXEC @scalar
Thomasf0f64ca2022-03-30 10:38:01 -07007func.func @scalar(%arg0 : i32) -> i32 {
Geoffrey Martin-Noble43d9f3b2020-02-03 21:46:10 -08008 return %arg0 : i32
Geoffrey Martin-Noblee64004d2020-02-03 16:13:46 -08009}
10// CHECK: i32=42