Quentin Colombet | 545e558 | 2016-07-13 20:36:03 +0000 | [diff] [blame] | 1 | # 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 | # 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 | # 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 | # 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 |
Quentin Colombet | 129458a | 2016-06-10 00:52:10 +0000 | [diff] [blame] | 5 | # REQUIRES: asserts |
| 6 | |
| 7 | # This test ensures that the command line accepts |
| 8 | # several run passes on the same command line and |
| 9 | # actually create the proper pipeline for it. |
Taewook Oh | 0e35ea3 | 2017-06-29 23:11:24 +0000 | [diff] [blame] | 10 | # PSEUDO_PEEPHOLE: -expand-isel-pseudos |
| 11 | # PSEUDO_PEEPHOLE-SAME: {{(-machineverifier )?}}-peephole-opt |
Matthias Braun | d6a36ae | 2017-05-31 18:41:23 +0000 | [diff] [blame] | 12 | # PEEPHOLE_PSEUDO: -peephole-opt {{(-machineverifier )?}}-expand-isel-pseudos |
Quentin Colombet | 129458a | 2016-06-10 00:52:10 +0000 | [diff] [blame] | 13 | |
| 14 | # Make sure there are no other passes happening after what we asked. |
| 15 | # CHECK-NEXT: --- | |
| 16 | --- |
| 17 | # CHECK: name: foo |
| 18 | name: foo |
| 19 | body: | |
| 20 | bb.0: |
| 21 | ... |