brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 2769164 Raw
24 lines · c
1// RUN: %clang_cc1 -triple thumbv6m -verify -fsyntax-only %s2 3// expected-no-diagnostics4// Armv8.1-M.Main5__attribute__((target("arch=cortex-m55,branch-protection=bti"))) void f1(void) {}6__attribute__((target("arch=cortex-m55,branch-protection=pac-ret"))) void f2(void) {}7__attribute__((target("arch=cortex-m55,branch-protection=bti+pac-ret"))) void f3(void) {}8__attribute__((target("arch=cortex-m55,branch-protection=bti+pac-ret+leaf"))) void f4(void) {}9// Armv8-M.Main10__attribute__((target("arch=cortex-m33,branch-protection=bti"))) void f5(void) {}11__attribute__((target("arch=cortex-m33,branch-protection=pac-ret"))) void f6(void) {}12__attribute__((target("arch=cortex-m33,branch-protection=bti+pac-ret"))) void f7(void) {}13__attribute__((target("arch=cortex-m33,branch-protection=bti+pac-ret+leaf"))) void f8(void) {}14// Armv7-M15__attribute__((target("arch=cortex-m3,branch-protection=bti"))) void f9(void) {}16__attribute__((target("arch=cortex-m3,branch-protection=pac-ret"))) void f10(void) {}17__attribute__((target("arch=cortex-m3,branch-protection=bti+pac-ret"))) void f11(void) {}18__attribute__((target("arch=cortex-m3,branch-protection=bti+pac-ret+leaf"))) void f12(void) {}19// Armv7E-M20__attribute__((target("arch=cortex-m4,branch-protection=bti"))) void f13(void) {}21__attribute__((target("arch=cortex-m4,branch-protection=pac-ret"))) void f14(void) {}22__attribute__((target("arch=cortex-m4,branch-protection=bti+pac-ret"))) void f15(void) {}23__attribute__((target("arch=cortex-m4,branch-protection=bti+pac-ret+leaf"))) void f16(void) {}24