[FastISel] Support unreachable with NoTrapAfterNoReturn (#118296)
[llvm-project.git] / flang / test / Driver / optimization-remark-backend.f90
blob5d455f09d31523db6c3acc61354d2f19abc47f2a
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]
16 program forttest
17 implicit none
18 integer :: n
20 do n = 1,2
21 print *, ""
22 end do
24 end program forttest