[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / sparc-target-features.c
bloba839604ff1bc0225b87dccd572205508ea3c3ed2
1 // RUN: %clang --target=sparc -mfpu %s -### 2>&1 | FileCheck -check-prefix=FPU %s
2 // RUN: %clang --target=sparc -mno-fpu %s -### 2>&1 | FileCheck -check-prefix=NO-FPU %s
3 // FPU: "-mfloat-abi" "hard"
4 // NO-FPU: "-mfloat-abi" "soft"
6 // RUN: %clang --target=sparc -mfsmuld %s -### 2>&1 | FileCheck -check-prefix=FSMULD %s
7 // RUN: %clang --target=sparc -mno-fsmuld %s -### 2>&1 | FileCheck -check-prefix=NO-FSMULD %s
8 // FSMULD: "-target-feature" "+fsmuld"
9 // NO-FSMULD: "-target-feature" "-fsmuld"
11 // RUN: %clang --target=sparc -mpopc %s -### 2>&1 | FileCheck -check-prefix=POPC %s
12 // RUN: %clang --target=sparc -mno-popc %s -### 2>&1 | FileCheck -check-prefix=NO-POPC %s
13 // POPC: "-target-feature" "+popc"
14 // NO-POPC: "-target-feature" "-popc"
16 // RUN: %clang --target=sparc -mvis %s -### 2>&1 | FileCheck -check-prefix=VIS %s
17 // RUN: %clang --target=sparc -mno-vis %s -### 2>&1 | FileCheck -check-prefix=NO-VIS %s
18 // VIS: "-target-feature" "+vis"
19 // NO-VIS: "-target-feature" "-vis"
21 // RUN: %clang --target=sparc -mvis2 %s -### 2>&1 | FileCheck -check-prefix=VIS2 %s
22 // RUN: %clang --target=sparc -mno-vis2 %s -### 2>&1 | FileCheck -check-prefix=NO-VIS2 %s
23 // VIS2: "-target-feature" "+vis2"
24 // NO-VIS2: "-target-feature" "-vis2"
26 // RUN: %clang --target=sparc -mvis3 %s -### 2>&1 | FileCheck -check-prefix=VIS3 %s
27 // RUN: %clang --target=sparc -mno-vis3 %s -### 2>&1 | FileCheck -check-prefix=NO-VIS3 %s
28 // VIS3: "-target-feature" "+vis3"
29 // NO-VIS3: "-target-feature" "-vis3"
31 // RUN: %clang --target=sparc -mhard-quad-float %s -### 2>&1 | FileCheck -check-prefix=HARD-QUAD-FLOAT %s
32 // RUN: %clang --target=sparc -msoft-quad-float %s -### 2>&1 | FileCheck -check-prefix=SOFT-QUAD-FLOAT %s
33 // HARD-QUAD-FLOAT: "-target-feature" "+hard-quad-float"
34 // SOFT-QUAD-FLOAT: "-target-feature" "-hard-quad-float"
36 // RUN: %clang --target=sparc -mv8plus %s -### 2>&1 | FileCheck -check-prefix=V8PLUS %s
37 // V8PLUS: "-target-feature" "+v8plus"