diff options
author | Simon Atanasyan <satanasyan@mips.com> | 2013-01-10 12:36:19 +0000 |
---|---|---|
committer | Simon Atanasyan <satanasyan@mips.com> | 2013-01-10 12:36:19 +0000 |
commit | 81c423cc97d8ecdaa00b659e973a9afcf1306a7b (patch) | |
tree | da7d52cb1bb963eac6df2a4152a3e2b3959e3452 /clang/test/Driver/mips-float.c | |
parent | 4f6e4ae44a6ecaae12081dc611a5ab8093ee3f1a (diff) | |
download | bcm5719-llvm-81c423cc97d8ecdaa00b659e973a9afcf1306a7b.tar.gz bcm5719-llvm-81c423cc97d8ecdaa00b659e973a9afcf1306a7b.zip |
[Mips] Pass a combination of +soft-float and -mips16-hard-float flags to
the backend if hard float ABI is selected under -mips16 mode.
llvm-svn: 172062
Diffstat (limited to 'clang/test/Driver/mips-float.c')
-rw-r--r-- | clang/test/Driver/mips-float.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/clang/test/Driver/mips-float.c b/clang/test/Driver/mips-float.c index 886c3355a96..5c16b9b0635 100644 --- a/clang/test/Driver/mips-float.c +++ b/clang/test/Driver/mips-float.c @@ -41,3 +41,44 @@ // RUN: -target mips-linux-gnu -mfloat-abi=single \ // RUN: | FileCheck --check-prefix=CHECK-ABI-SINGLE %s // CHECK-ABI-SINGLE: "-target-feature" "+single-float" +// +// Default -mips16 +// RUN: %clang -c %s -### -o %t.o 2>&1 \ +// RUN: -target mips-linux-gnu -mips16 \ +// RUN: | FileCheck --check-prefix=CHECK-DEF-MIPS16 %s +// CHECK-DEF-MIPS16: "-mfloat-abi" "soft" +// CHECK-DEF-MIPS16: "-mllvm" "-mips16-hard-float" +// +// -mhard-float -mips16 +// RUN: %clang -c %s -### -o %t.o 2>&1 \ +// RUN: -target mips-linux-gnu -mhard-float -mips16 \ +// RUN: | FileCheck --check-prefix=CHECK-HARD-MIPS16 %s +// CHECK-HARD-MIPS16: "-msoft-float" +// CHECK-HARD-MIPS16: "-mfloat-abi" "soft" +// CHECK-HARD-MIPS16: "-target-feature" "+soft-float" +// CHECK-HARD-MIPS16: "-mllvm" "-mips16-hard-float" +// +// -msoft-float -mips16 +// RUN: %clang -c %s -### -o %t.o 2>&1 \ +// RUN: -target mips-linux-gnu -msoft-float -mips16 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-MIPS16 %s +// CHECK-SOFT-MIPS16: "-msoft-float" +// CHECK-SOFT-MIPS16: "-mfloat-abi" "soft" +// CHECK-SOFT-MIPS16: "-target-feature" "+soft-float" +// +// -mfloat-abi=hard -mips16 +// RUN: %clang -c %s -### -o %t.o 2>&1 \ +// RUN: -target mips-linux-gnu -mfloat-abi=hard -mips16 \ +// RUN: | FileCheck --check-prefix=CHECK-ABI-HARD-MIPS16 %s +// CHECK-ABI-HARD-MIPS16: "-msoft-float" +// CHECK-ABI-HARD-MIPS16: "-mfloat-abi" "soft" +// CHECK-ABI-HARD-MIPS16: "-target-feature" "+soft-float" +// CHECK-ABI-HARD-MIPS16: "-mllvm" "-mips16-hard-float" +// +// -mfloat-abi=soft -mips16 +// RUN: %clang -c %s -### -o %t.o 2>&1 \ +// RUN: -target mips-linux-gnu -mfloat-abi=soft -mips16 \ +// RUN: | FileCheck --check-prefix=CHECK-ABI-SOFT-MIPS16 %s +// CHECK-ABI-SOFT-MIPS16: "-msoft-float" +// CHECK-ABI-SOFT-MIPS16: "-mfloat-abi" "soft" +// CHECK-ABI-SOFT-MIPS16: "-target-feature" "+soft-float" |