|
@@ -2,19 +2,19 @@
|
|
// when build for MIPS platforms.
|
|
// when build for MIPS platforms.
|
|
//
|
|
//
|
|
// Default
|
|
// Default
|
|
-// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
|
|
|
|
+// RUN: %clang -ccc-clang-archs mips -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target mips-linux-gnu \
|
|
// RUN: -target mips-linux-gnu \
|
|
// RUN: | FileCheck --check-prefix=CHECK-DEF %s
|
|
// RUN: | FileCheck --check-prefix=CHECK-DEF %s
|
|
// CHECK-DEF: "-mfloat-abi" "hard"
|
|
// CHECK-DEF: "-mfloat-abi" "hard"
|
|
//
|
|
//
|
|
// -mhard-float
|
|
// -mhard-float
|
|
-// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
|
|
|
|
+// RUN: %clang -ccc-clang-archs mips -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target mips-linux-gnu -mhard-float \
|
|
// RUN: -target mips-linux-gnu -mhard-float \
|
|
// RUN: | FileCheck --check-prefix=CHECK-HARD %s
|
|
// RUN: | FileCheck --check-prefix=CHECK-HARD %s
|
|
// CHECK-HARD: "-mfloat-abi" "hard"
|
|
// CHECK-HARD: "-mfloat-abi" "hard"
|
|
//
|
|
//
|
|
// -msoft-float
|
|
// -msoft-float
|
|
-// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
|
|
|
|
+// RUN: %clang -ccc-clang-archs mips -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target mips-linux-gnu -msoft-float \
|
|
// RUN: -target mips-linux-gnu -msoft-float \
|
|
// RUN: | FileCheck --check-prefix=CHECK-SOFT %s
|
|
// RUN: | FileCheck --check-prefix=CHECK-SOFT %s
|
|
// CHECK-SOFT: "-msoft-float"
|
|
// CHECK-SOFT: "-msoft-float"
|
|
@@ -22,13 +22,13 @@
|
|
// CHECK-SOFT: "-target-feature" "+soft-float"
|
|
// CHECK-SOFT: "-target-feature" "+soft-float"
|
|
//
|
|
//
|
|
// -mfloat-abi=hard
|
|
// -mfloat-abi=hard
|
|
-// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
|
|
|
|
+// RUN: %clang -ccc-clang-archs mips -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target mips-linux-gnu -mfloat-abi=hard \
|
|
// RUN: -target mips-linux-gnu -mfloat-abi=hard \
|
|
// RUN: | FileCheck --check-prefix=CHECK-ABI-HARD %s
|
|
// RUN: | FileCheck --check-prefix=CHECK-ABI-HARD %s
|
|
// CHECK-ABI-HARD: "-mfloat-abi" "hard"
|
|
// CHECK-ABI-HARD: "-mfloat-abi" "hard"
|
|
//
|
|
//
|
|
// -mfloat-abi=soft
|
|
// -mfloat-abi=soft
|
|
-// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
|
|
|
|
+// RUN: %clang -ccc-clang-archs mips -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target mips-linux-gnu -mfloat-abi=soft \
|
|
// RUN: -target mips-linux-gnu -mfloat-abi=soft \
|
|
// RUN: | FileCheck --check-prefix=CHECK-ABI-SOFT %s
|
|
// RUN: | FileCheck --check-prefix=CHECK-ABI-SOFT %s
|
|
// CHECK-ABI-SOFT: "-msoft-float"
|
|
// CHECK-ABI-SOFT: "-msoft-float"
|
|
@@ -36,7 +36,7 @@
|
|
// CHECK-ABI-SOFT: "-target-feature" "+soft-float"
|
|
// CHECK-ABI-SOFT: "-target-feature" "+soft-float"
|
|
//
|
|
//
|
|
// -mfloat-abi=single
|
|
// -mfloat-abi=single
|
|
-// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
|
|
|
|
+// RUN: %clang -ccc-clang-archs mips -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target mips-linux-gnu -mfloat-abi=single \
|
|
// RUN: -target mips-linux-gnu -mfloat-abi=single \
|
|
// RUN: | FileCheck --check-prefix=CHECK-ABI-SINGLE %s
|
|
// RUN: | FileCheck --check-prefix=CHECK-ABI-SINGLE %s
|
|
// CHECK-ABI-SINGLE: "-target-feature" "+single-float"
|
|
// CHECK-ABI-SINGLE: "-target-feature" "+single-float"
|