25 lines · plain
1! This file tests backend passes emitted by the -Rpass family of flags2! loop-delete isn't enabled at O0 so we use at least O13 4! DEFINE: %{output} = -S -o /dev/null 2>&15 6! Check full -Rpass-missed message is emitted7! RUN: %flang %s -O1 -Rpass-missed %{output} 2>&1 | FileCheck %s --check-prefix=MISSED8 9! Check full -Rpass-analysis message is emitted10! RUN: %flang %s -O1 -Rpass-analysis %{output} 2>&1 | FileCheck %s --check-prefix=ANALYSIS11 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]15 16program forttest17 implicit none18 integer :: n19 20 do n = 1,221 print *, ""22 end do23 24end program forttest25