
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
// Check handling -mhard-float / -msoft-float options
|
|
// when build for SPARC platforms.
|
|
//
|
|
// Default sparc
|
|
// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target sparc-linux-gnu \
|
|
// RUN: | FileCheck --check-prefix=CHECK-DEF %s
|
|
// CHECK-DEF: "-target-feature" "+soft-float"
|
|
// CHECK-DEF: "-msoft-float"
|
|
//
|
|
// -mhard-float
|
|
// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target sparc-linux-gnu -mhard-float \
|
|
// RUN: | FileCheck --check-prefix=CHECK-HARD %s
|
|
// CHECK-HARD: "-mhard-float"
|
|
//
|
|
// -msoft-float
|
|
// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target sparc-linux-gnu -msoft-float \
|
|
// RUN: | FileCheck --check-prefix=CHECK-SOFT %s
|
|
// CHECK-SOFT: "-target-feature" "+soft-float"
|
|
// CHECK-SOFT: "-msoft-float"
|
|
//
|
|
// Default sparc64
|
|
// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target sparc64-linux-gnu \
|
|
// RUN: | FileCheck --check-prefix=CHECK-DEF-SPARC64 %s
|
|
// CHECK-DEF-SPARC64: "-target-feature" "+soft-float"
|
|
// CHECK-DEF-SPARC64: "-msoft-float"
|
|
//
|
|
// -mhard-float
|
|
// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target sparc64-linux-gnu -mhard-float \
|
|
// RUN: | FileCheck --check-prefix=CHECK-HARD-SPARC64 %s
|
|
// CHECK-HARD-SPARC64: "-mhard-float"
|
|
//
|
|
// -msoft-float
|
|
// RUN: %clang -c %s -### -o %t.o 2>&1 \
|
|
// RUN: -target sparc64-linux-gnu -msoft-float \
|
|
// RUN: | FileCheck --check-prefix=CHECK-SOFT-SPARC64 %s
|
|
// CHECK-SOFT-SPARC64: "-target-feature" "+soft-float"
|
|
// CHECK-SOFT-SPARC64: "-msoft-float"
|