diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | 809500fc2c13c8173a16b052304d983864e4a1e1 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/Driver/mips-float.c | |
parent | be7c9ec198dcdb5bf73a35bfbb00b3333cb87909 (diff) |
Diffstat (limited to 'test/Driver/mips-float.c')
-rw-r--r-- | test/Driver/mips-float.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/Driver/mips-float.c b/test/Driver/mips-float.c index 886c3355a9633..5c16b9b06351b 100644 --- a/test/Driver/mips-float.c +++ b/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" |