xref: /aosp_15_r20/external/llvm/test/CodeGen/MIR/Generic/multiRunPass.mir (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llc -run-pass expand-isel-pseudos  -run-pass peephole-opt -debug-pass=Arguments -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=PSEUDO_PEEPHOLE
2*9880d681SAndroid Build Coastguard Worker# RUN: llc -run-pass expand-isel-pseudos,peephole-opt -debug-pass=Arguments -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=PSEUDO_PEEPHOLE
3*9880d681SAndroid Build Coastguard Worker# RUN: llc -run-pass peephole-opt -run-pass expand-isel-pseudos -debug-pass=Arguments -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=PEEPHOLE_PSEUDO
4*9880d681SAndroid Build Coastguard Worker# RUN: llc -run-pass peephole-opt,expand-isel-pseudos -debug-pass=Arguments -o - %s 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=PEEPHOLE_PSEUDO
5*9880d681SAndroid Build Coastguard Worker# REQUIRES: asserts
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker# This test ensures that the command line accepts
8*9880d681SAndroid Build Coastguard Worker# several run passes on the same command line and
9*9880d681SAndroid Build Coastguard Worker# actually create the proper pipeline for it.
10*9880d681SAndroid Build Coastguard Worker# PSEUDO_PEEPHOLE: -expand-isel-pseudos -peephole-opt
11*9880d681SAndroid Build Coastguard Worker# PEEPHOLE_PSEUDO: -peephole-opt -expand-isel-pseudos
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker# Make sure there are no other passes happening after what we asked.
14*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: --- |
15*9880d681SAndroid Build Coastguard Worker---
16*9880d681SAndroid Build Coastguard Worker# CHECK: name: foo
17*9880d681SAndroid Build Coastguard Workername: foo
18*9880d681SAndroid Build Coastguard Workerbody: |
19*9880d681SAndroid Build Coastguard Worker  bb.0:
20*9880d681SAndroid Build Coastguard Worker...
21