xref: /llvm-project/flang/test/Driver/frame-pointer-forwarding.f90 (revision 06eb10dadfaeaadc5d0d95d38bea4bfb5253e077)
1! Test that flang forwards -fno-omit-frame-pointer and -fomit-frame-pointer Flang frontend
2! RUN: %flang --target=aarch64-none-none -fsyntax-only -### %s -o %t 2>&1  | FileCheck %s --check-prefix=CHECK-NOVALUE
3! CHECK-NOVALUE: "-fc1"{{.*}}"-mframe-pointer=non-leaf"
4
5! RUN: %flang -fomit-frame-pointer --target=aarch64-none-none -fsyntax-only -### %s -o %t 2>&1  | FileCheck %s --check-prefix=CHECK-NONEFP
6! CHECK-NONEFP: "-fc1"{{.*}}"-mframe-pointer=none"
7
8! RUN: %flang -fno-omit-frame-pointer --target=aarch64-none-none -fsyntax-only -### %s -o %t 2>&1  | FileCheck %s --check-prefix=CHECK-NONLEAFFP
9! CHECK-NONLEAFFP: "-fc1"{{.*}}"-mframe-pointer=non-leaf"
10
11! RUN: %flang -fno-omit-frame-pointer --target=x86-none-none -fsyntax-only -### %s -o %t 2>&1  | FileCheck %s --check-prefix=CHECK-ALLFP
12! CHECK-ALLFP: "-fc1"{{.*}}"-mframe-pointer=all"
13