diff options
author | Brad Smith <brad@comstyle.com> | 2014-07-11 20:12:08 +0000 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2014-07-11 20:12:08 +0000 |
commit | 10cd0f457a0b6d9b9fba0cd0286ee2b7c5065c45 (patch) | |
tree | 8b7cd115240d9cb06047558467c5b7ab9b6ff850 /clang/test/Driver/sparc-float.c | |
parent | 48bbd061bc46891afed70ceafced3c2343e4b6ae (diff) | |
download | bcm5719-llvm-10cd0f457a0b6d9b9fba0cd0286ee2b7c5065c45.tar.gz bcm5719-llvm-10cd0f457a0b6d9b9fba0cd0286ee2b7c5065c45.zip |
Handle SPARC float command line parameters for SPARCv9.
llvm-svn: 212838
Diffstat (limited to 'clang/test/Driver/sparc-float.c')
-rw-r--r-- | clang/test/Driver/sparc-float.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/clang/test/Driver/sparc-float.c b/clang/test/Driver/sparc-float.c new file mode 100644 index 00000000000..36f99041737 --- /dev/null +++ b/clang/test/Driver/sparc-float.c @@ -0,0 +1,38 @@ +// 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: "-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: "-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: "-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-MIPS16: "-msoft-float" |