1 ! This file tests backend passes emitted by the -Rpass family of flags
2 ! loop-delete isn't enabled at O0 so we use at least O1
4 ! DEFINE: %{output} = -S -o /dev/null 2>&1
6 ! Check full -Rpass-missed message is emitted
7 ! RUN: %flang %s -O1 -Rpass-missed %{output} 2>&1 | FileCheck %s --check-prefix=MISSED
9 ! Check full -Rpass-analysis message is emitted
10 ! RUN: %flang %s -O1 -Rpass-analysis %{output} 2>&1 | FileCheck %s --check-prefix=ANALYSIS
12 ! MISSED: remark: {{[0-9]+}} virtual registers copies {{.*}} total copies cost generated in function [-Rpass-missed=regalloc]
13 ! ANALYSIS: remark: BasicBlock:
14 ! ANALYSIS: [-Rpass-analysis=asm-printer]