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 3 4! DEFINE: %{output} = -S -o /dev/null 2>&1 5 6! Check full -Rpass-missed message is emitted 7! RUN: %flang %s -O1 -Rpass-missed %{output} 2>&1 | FileCheck %s --check-prefix=MISSED 8 9! Check full -Rpass-analysis message is emitted 10! RUN: %flang %s -O1 -Rpass-analysis %{output} 2>&1 | FileCheck %s --check-prefix=ANALYSIS 11 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 forttest 17 implicit none 18 integer :: n 19 20 do n = 1,2 21 print *, "" 22 end do 23 24end program forttest 25