[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / msp430-fp-elim.c
blob194a84b62ab6b2fcfdec7e26541bdf6fed5e6d07
1 // REQUIRES: msp430-registered-target
2 // RUN: %clang_cc1 -mframe-pointer=all -triple msp430 -S %s -o - | FileCheck %s --check-prefix=FP_ENFORCED
3 // RUN: %clang_cc1 -triple msp430 -S %s -o - | FileCheck %s --check-prefix=FP_DEFAULT
5 // Check the frame pointer is not used on MSP430 by default, but can be forcibly turned on.
7 // FP_ENFORCED: push r4
8 // FP_ENFORCED: mov r4, r4
9 // FP_ENFORCED: pop r4
10 // FP_DEFAULT: .globl fp_elim_check
11 // FP_DEFAULT-NOT: push r4
12 // FP_DEFAULT: mov r4, r4
13 // FP_DEFAULT-NOT: pop r4
15 void fp_elim_check()
17 asm volatile ("mov r4, r4");