llvm-project
15 строк · 602.0 Байт
1// REQUIRES: asserts
2// RUN: mlir-cpu-runner %s --debug-only=jit-runner -mattr=+foo_bar -e entry -entry-point-result=void 2>&1 | FileCheck %s --check-prefixes=MATTR
3// RUN: not mlir-cpu-runner %s --debug-only=jit-runner -march=bar_foo -e entry -entry-point-result=void 2>&1 | FileCheck %s --check-prefixes=MARCH
4
5// Verify that command line args do affect the configuration
6
7// MATTR: Features =
8// MATTR-SAME: +foo_bar
9
10// MARCH: Failed to create a TargetMachine for the host
11// MARCH-NEXT: No available targets are compatible with triple "bar_foo-{{.*}}"
12
13llvm.func @entry() -> () {
14llvm.return
15}
16