1; Check that, in the absence of dependencies, we emit an error message when
2; trying to use ML-driven advisor.
3; REQUIRES: !have_tf_aot
4; REQUIRES: !have_tf_api
5; REQUIRES: default_triple
6; RUN: not llc -O2 -regalloc-enable-advisor=development < %s 2>&1 | FileCheck %s
7; RUN: not llc -O2 -regalloc-enable-advisor=release < %s 2>&1 | FileCheck %s
8; RUN: llc -O2 -regalloc-enable-advisor=default < %s 2>&1 | FileCheck %s --check-prefix=DEFAULT
9
10; regalloc-enable-advisor is not enabled for NVPTX
11; UNSUPPORTED: nvptx
12
13define void @f2(i64 %lhs, i64 %rhs, i64* %addr) {
14  %sum = add i64 %lhs, %rhs
15  store i64 %sum, i64* %addr
16  ret void
17}
18
19; CHECK: Requested regalloc eviction advisor analysis could be created. Using default
20; DEFAULT-NOT: Requested regalloc eviction advisor analysis could be created. Using default
21