blob: 15050d2c4ea46c455d6c8418c7d8404f1d0554f0 [file] [log] [blame]
Brad Smith10cd0f42014-07-11 20:12:08 +00001// Check handling -mhard-float / -msoft-float options
2// when build for SPARC platforms.
3//
4// Default sparc
5// RUN: %clang -c %s -### -o %t.o 2>&1 \
6// RUN: -target sparc-linux-gnu \
7// RUN: | FileCheck --check-prefix=CHECK-DEF %s
8// CHECK-DEF: "-msoft-float"
9//
10// -mhard-float
11// RUN: %clang -c %s -### -o %t.o 2>&1 \
12// RUN: -target sparc-linux-gnu -mhard-float \
13// RUN: | FileCheck --check-prefix=CHECK-HARD %s
14// CHECK-HARD: "-mhard-float"
15//
16// -msoft-float
17// RUN: %clang -c %s -### -o %t.o 2>&1 \
18// RUN: -target sparc-linux-gnu -msoft-float \
19// RUN: | FileCheck --check-prefix=CHECK-SOFT %s
20// CHECK-SOFT: "-msoft-float"
21//
22// Default sparc64
23// RUN: %clang -c %s -### -o %t.o 2>&1 \
24// RUN: -target sparc64-linux-gnu \
25// RUN: | FileCheck --check-prefix=CHECK-DEF-SPARC64 %s
26// CHECK-DEF-SPARC64: "-msoft-float"
27//
28// -mhard-float
29// RUN: %clang -c %s -### -o %t.o 2>&1 \
30// RUN: -target sparc64-linux-gnu -mhard-float \
31// RUN: | FileCheck --check-prefix=CHECK-HARD-SPARC64 %s
32// CHECK-HARD-SPARC64: "-mhard-float"
33//
34// -msoft-float
35// RUN: %clang -c %s -### -o %t.o 2>&1 \
36// RUN: -target sparc64-linux-gnu -msoft-float \
37// RUN: | FileCheck --check-prefix=CHECK-SOFT-SPARC64 %s
Brad Smith83510e72014-07-11 20:27:39 +000038// CHECK-SOFT-SPARC64: "-msoft-float"