xref: /llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/counter-fallback.ll (revision d46e37348ec3f8054b10bcbbe7c11149d7f61031)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2; RUN: llc -mtriple=aarch64-- -global-isel -global-isel-abort=0 -debug-counter=globalisel=0 %s -o - 2>/dev/null | FileCheck %s
3; RUN: llc -mtriple=aarch64-- -global-isel -global-isel-abort=0 -debug-counter=globalisel=0 %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=DEBUG
4
5; REQUIRES: asserts
6
7; DEBUG-NOT: Falling back for function test1
8; DEBUG: Falling back for function test2
9
10define i32 @test1(i32 %x) {
11; CHECK-LABEL: test1:
12; CHECK:       // %bb.0:
13; CHECK-NEXT:    ret
14  ret i32 %x
15}
16
17define i32 @test2(i32 %x) {
18; CHECK-LABEL: test2:
19; CHECK:       // %bb.0:
20; CHECK-NEXT:    ret
21  ret i32 %x
22}
23
24;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
25; DEBUG: {{.*}}
26