| 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" |
| 5 |
|
| 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" |
| 10 |
|
| 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" |
| 15 |
|
| 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" |
| 20 |
|
| 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 |
/// Solaris/SPARC defaults to -mvis2 |
| 24 |
// RUN: %clang --target=sparc-sun-solaris2.11 %s -### 2>&1 | FileCheck -check-prefix=VIS2 %s |
| 25 |
// RUN: %clang --target=sparc-sun-solaris2.11 -mno-vis2 %s -### 2>&1 | FileCheck -check-prefix=NO-VIS2 %s |
| 26 |
// RUN: %clang --target=sparcv9-sun-solaris2.11 %s -### 2>&1 | FileCheck -check-prefix=VIS2 %s |
| 27 |
// RUN: %clang --target=sparcv9-sun-solaris2.11 -mno-vis2 %s -### 2>&1 | FileCheck -check-prefix=NO-VIS2 %s |
| 28 |
// VIS2: "-target-feature" "+vis2" |
| 29 |
// NO-VIS2: "-target-feature" "-vis2" |
| 30 |
|
| 31 |
// RUN: %clang --target=sparc -mvis3 %s -### 2>&1 | FileCheck -check-prefix=VIS3 %s |
| 32 |
// RUN: %clang --target=sparc -mno-vis3 %s -### 2>&1 | FileCheck -check-prefix=NO-VIS3 %s |
| 33 |
// VIS3: "-target-feature" "+vis3" |
| 34 |
// NO-VIS3: "-target-feature" "-vis3" |
| 35 |
|
| 36 |
// RUN: %clang --target=sparc -mhard-quad-float %s -### 2>&1 | FileCheck -check-prefix=HARD-QUAD-FLOAT %s |
| 37 |
// RUN: %clang --target=sparc -msoft-quad-float %s -### 2>&1 | FileCheck -check-prefix=SOFT-QUAD-FLOAT %s |
| 38 |
// HARD-QUAD-FLOAT: "-target-feature" "+hard-quad-float" |
| 39 |
// SOFT-QUAD-FLOAT: "-target-feature" "-hard-quad-float" |
| 40 |
|
| 41 |
// RUN: %clang --target=sparc -mv8plus %s -### 2>&1 | FileCheck -check-prefix=V8PLUS %s |
| 42 |
/// 32-bit Solaris/SPARC defaults to -mv8plus |
| 43 |
// RUN: %clang --target=sparc-sun-solaris2.11 %s -### 2>&1 | FileCheck -check-prefix=V8PLUS %s |
| 44 |
// RUN: %clang --target=sparc-sun-solaris2.11 -mno-v8plus %s -### 2>&1 | FileCheck -check-prefix=NO-V8PLUS %s |
| 45 |
// V8PLUS: "-target-feature" "+v8plus" |
| 46 |
// NO-V8PLUS-NOT: "-target-feature" "+v8plus" |