• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+dsp  -### %s 2> %t
2 // RUN: FileCheck --check-prefix=CHECK-DSP < %t %s
3 // CHECK-DSP: "-target-feature" "+dsp"
4 
5 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+fp  -### %s 2> %t
6 // RUN: FileCheck --check-prefix=CHECK-FP < %t %s
7 // CHECK-FP-DAG: "-target-feature" "+fp-armv8d16sp"
8 // CHECK-FP-NOT: "-target-feature" "+fp-armv8d16"
9 // CHECK-FP-NOT: "-target-feature" "+fp-armv8sp"
10 // CHECK-FP-NOT: "-target-feature" "+fp-armv8"
11 // CHECK-FP-NOT: "-target-feature" "+fp64"
12 // CHECK-FP-NOT: "-target-feature" "+d32"
13 // CHECK-FP-DAG: "-target-feature" "+fullfp16"
14 
15 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+nofp  -### %s 2> %t
16 // RUN: FileCheck --check-prefix=CHECK-NOFP < %t %s
17 // CHECK-NOFP-DAG: "-target-feature" "-vfp2"
18 // CHECK-NOFP-DAG: "-target-feature" "-vfp3"
19 // CHECK-NOFP-DAG: "-target-feature" "-fp16"
20 // CHECK-NOFP-DAG: "-target-feature" "-vfp4"
21 // CHECK-NOFP-DAG: "-target-feature" "-fp-armv8"
22 // CHECK-NOFP-DAG: "-target-feature" "-fp64"
23 // CHECK-NOFP-DAG: "-target-feature" "-d32"
24 // CHECK-NOFP-DAG: "-target-feature" "-neon"
25 // CHECK-NOFP-DAG: "-target-feature" "-crypto"
26 
27 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+fp.dp  -### %s 2> %t
28 // RUN: FileCheck --check-prefix=CHECK-FPDP < %t %s
29 // CHECK-FPDP-NOT: "-target-feature" "+fp-armv8sp"
30 // CHECK-FPDP-DAG: "-target-feature" "+fp-armv8d16"
31 // CHECK-FPDP-NOT: "-target-feature" "+fp-armv8"
32 // CHECK-FPDP-DAG: "-target-feature" "+fullfp16"
33 // CHECK-FPDP-DAG: "-target-feature" "+fp64"
34 // CHECK-FPDP-NOT: "-target-feature" "+d32"
35 
36 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+nofp.dp  -### %s 2> %t
37 // RUN: FileCheck --check-prefix=CHECK-NOFPDP < %t %s
38 // CHECK-NOFPDP-DAG: "-target-feature" "-fp64"
39 
40 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+mve  -### %s 2> %t
41 // RUN: FileCheck --check-prefix=CHECK-MVE < %t %s
42 // CHECK-MVE-DAG: "-target-feature" "+mve"
43 
44 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+nomve  -### %s 2> %t
45 // RUN: FileCheck --check-prefix=CHECK-NOMVE < %t %s
46 // CHECK-NOMVE-DAG: "-target-feature" "-mve"
47 
48 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+mve.fp  -### %s 2> %t
49 // RUN: FileCheck --check-prefix=CHECK-MVEFP < %t %s
50 // CHECK-MVEFP-DAG: "-target-feature" "+mve.fp"
51 // CHECK-MVEFP-NOT: "-target-feature" "+fp64"
52 
53 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+nomve.fp  -### %s 2> %t
54 // RUN: FileCheck --check-prefix=CHECK-NOMVEFP < %t %s
55 // CHECK-NOMVEFP: "-target-feature" "-mve.fp"
56 
57 // RUN: %clang -target arm-arm-none-eabi -march=armv8.1-m.main+mve.fp+fp.dp  -### %s 2> %t
58 // RUN: FileCheck --check-prefix=CHECK-MVEFP_DP < %t %s
59 // CHECK-MVEFP_DP-DAG: "-target-feature" "+mve.fp"
60 // CHECK-MVEFP_DP-DAG: "-target-feature" "+fp64"
61 
foo(double a)62 double foo (double a) { return a; }
63