1 ; REQUIRES: aarch64-registered-target
2 ; RUN: llc -filetype=null -mtriple=aarch64 -O0 -print-changed %s 2>&1 | FileCheck %s --check-prefixes=VERBOSE,VERBOSE-BAR
3 ; RUN: llc -filetype=null -mtriple=aarch64 -O0 -print-changed -filter-print-funcs=foo %s 2>&1 | FileCheck %s --check-prefixes=VERBOSE,NO-BAR
5 ; VERBOSE: *** IR Dump After IRTranslator (irtranslator) on foo ***
6 ; VERBOSE-NEXT: # Machine code for function foo: IsSSA, TracksLiveness{{$}}
7 ; VERBOSE-NEXT: Function Live Ins: $w0
9 ; VERBOSE-NEXT: bb.1.entry:
10 ; VERBOSE: *** IR Dump After Analysis for ComputingKnownBits (gisel-known-bits) on foo omitted because no change ***
11 ; VERBOSE-NEXT: *** IR Dump After AArch64O0PreLegalizerCombiner (aarch64-O0-prelegalizer-combiner) on foo omitted because no change ***
12 ; VERBOSE: *** IR Dump After Legalizer (legalizer) on foo ***
13 ; VERBOSE-NEXT: # Machine code for function foo: IsSSA, TracksLiveness, Legalized
14 ; VERBOSE-NEXT: Function Live Ins: $w0
16 ; VERBOSE-NEXT: bb.1.entry:
18 ; VERBOSE-BAR: *** IR Dump After IRTranslator (irtranslator) on bar ***
19 ; NO-BAR-NOT: on bar ***
21 ; RUN: llc -filetype=null -mtriple=aarch64 -O0 -print-changed=quiet %s 2>&1 | FileCheck %s --check-prefix=QUIET
23 ; QUIET: *** IR Dump After IRTranslator (irtranslator) on foo ***
25 ; QUIET: *** IR Dump After Localizer (localizer) on foo ***
27 ; RUN: llc -filetype=null -mtriple=aarch64 -O0 -print-changed -filter-passes=irtranslator,legalizer %s 2>&1 | \
28 ; RUN: FileCheck %s --check-prefixes=VERBOSE-FILTER
29 ; RUN: llc -filetype=null -mtriple=aarch64 -O0 -print-changed=quiet -filter-passes=irtranslator %s 2>&1 | \
30 ; RUN: FileCheck %s --check-prefixes=QUIET-FILTER --implicit-check-not='IR Dump'
32 ; VERBOSE-FILTER: *** IR Dump After IRTranslator (irtranslator) on foo ***
33 ; VERBOSE-FILTER: *** IR Dump After AArch64O0PreLegalizerCombiner (aarch64-O0-prelegalizer-combiner) on foo filtered out ***
34 ; VERBOSE-FILTER: *** IR Dump After Legalizer (legalizer) on foo ***
35 ; VERBOSE-FILTER-NOT: *** IR Dump After {{.*}} () on
37 ; QUIET-FILTER: *** IR Dump After IRTranslator (irtranslator) on foo ***
38 ; QUIET-FILTER: *** IR Dump After IRTranslator (irtranslator) on bar ***
40 ;; dot-cfg/dot-cfg-quiet are unimplemented. Currently they behave like 'quiet'.
41 ; RUN: llc -filetype=null -mtriple=aarch64 -O0 -print-changed=dot-cfg %s 2>&1 | FileCheck %s --check-prefix=QUIET
45 define void @foo(i32 %a) {
48 store i32 %b, ptr @var
52 define void @bar(i32 %a) {
55 store i32 %b, ptr @var