[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / baremetal-ld.c
blobec61b42b6f4875e6f75ca8c5e9707bb8e4582efc
1 // RUN: %clang -### --target=armv7-unknown-none-eabi -mcpu=cortex-m4 --sysroot= -fuse-ld=ld %s 2>&1 | FileCheck --check-prefix=NOLTO %s
2 // NOLTO: {{".*ld.*"}} {{.*}}
3 // NOLTO-NOT: "-plugin-opt=mcpu"
5 // RUN: %clang -### --target=armv7-unknown-none-eabi -mcpu=cortex-m4 --sysroot= -fuse-ld=ld -flto -O3 %s 2>&1 | FileCheck --check-prefix=LTO %s
6 // LTO: {{".*ld.*"}} {{.*}} "-plugin-opt=mcpu=cortex-m4" "-plugin-opt=O3"