diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-21 16:39:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-21 16:39:20 +0000 |
commit | 28e1f4b62569e532ed90df35209e4059e23131e0 (patch) | |
tree | 59772ddea1ebef491447a09320e879e4e5a1a647 /clang/test | |
parent | 4633cd7b087f131796a2218e8abe8b3350bd6201 (diff) | |
download | bcm5719-llvm-28e1f4b62569e532ed90df35209e4059e23131e0.tar.gz bcm5719-llvm-28e1f4b62569e532ed90df35209e4059e23131e0.zip |
Centralize the handling of -target-feature.
No functionality change other than changing the order of -target-feature
relative to other -cc1 command line arguments.
llvm-svn: 188906
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Driver/clang-translation.c | 4 | ||||
-rw-r--r-- | clang/test/Driver/mips-float.c | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/clang/test/Driver/clang-translation.c b/clang/test/Driver/clang-translation.c index 3b2b7e81f91..100b7819a30 100644 --- a/clang/test/Driver/clang-translation.c +++ b/clang/test/Driver/clang-translation.c @@ -33,10 +33,10 @@ // RUN: -msoft-float 2>&1 | FileCheck -check-prefix=ARMV7_SOFTFLOAT %s // ARMV7_SOFTFLOAT: clang // ARMV7_SOFTFLOAT: "-cc1" -// ARMV7_SOFTFLOAT: "-msoft-float" -// ARMV7_SOFTFLOAT: "-mfloat-abi" "soft" // ARMV7_SOFTFLOAT: "-target-feature" // ARMV7_SOFTFLOAT: "-neon" +// ARMV7_SOFTFLOAT: "-msoft-float" +// ARMV7_SOFTFLOAT: "-mfloat-abi" "soft" // ARMV7_SOFTFLOAT: "-x" "c" // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 \ diff --git a/clang/test/Driver/mips-float.c b/clang/test/Driver/mips-float.c index 9e62c0a95e0..ad2106a00e8 100644 --- a/clang/test/Driver/mips-float.c +++ b/clang/test/Driver/mips-float.c @@ -17,9 +17,9 @@ // RUN: %clang -c %s -### -o %t.o 2>&1 \ // RUN: -target mips-linux-gnu -msoft-float \ // RUN: | FileCheck --check-prefix=CHECK-SOFT %s +// CHECK-SOFT: "-target-feature" "+soft-float" // CHECK-SOFT: "-msoft-float" // CHECK-SOFT: "-mfloat-abi" "soft" -// CHECK-SOFT: "-target-feature" "+soft-float" // // -mfloat-abi=hard // RUN: %clang -c %s -### -o %t.o 2>&1 \ @@ -31,9 +31,9 @@ // RUN: %clang -c %s -### -o %t.o 2>&1 \ // RUN: -target mips-linux-gnu -mfloat-abi=soft \ // RUN: | FileCheck --check-prefix=CHECK-ABI-SOFT %s +// CHECK-ABI-SOFT: "-target-feature" "+soft-float" // CHECK-ABI-SOFT: "-msoft-float" // CHECK-ABI-SOFT: "-mfloat-abi" "soft" -// CHECK-ABI-SOFT: "-target-feature" "+soft-float" // // -mdouble-float // RUN: %clang -c %s -### -o %t.o 2>&1 \ @@ -46,15 +46,15 @@ // RUN: %clang -c %s -### -o %t.o 2>&1 \ // RUN: -target mips-linux-gnu -mdouble-float -msingle-float \ // RUN: | FileCheck --check-prefix=CHECK-ABI-SINGLE %s -// CHECK-ABI-SINGLE: "-mfloat-abi" "hard" // CHECK-ABI-SINGLE: "-target-feature" "+single-float" +// CHECK-ABI-SINGLE: "-mfloat-abi" "hard" // // -msoft-float -msingle-float // RUN: %clang -c %s -### -o %t.o 2>&1 \ // RUN: -target mips-linux-gnu -msoft-float -msingle-float \ // RUN: | FileCheck --check-prefix=CHECK-ABI-SOFT-SINGLE %s -// CHECK-ABI-SOFT-SINGLE: "-mfloat-abi" "soft" // CHECK-ABI-SOFT-SINGLE: "-target-feature" "+single-float" +// CHECK-ABI-SOFT-SINGLE: "-mfloat-abi" "soft" // // Default -mips16 // RUN: %clang -c %s -### -o %t.o 2>&1 \ @@ -67,32 +67,32 @@ // 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: "-target-feature" "+soft-float" // 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: "-target-feature" "+soft-float" // 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: "-target-feature" "+soft-float" // 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: "-target-feature" "+soft-float" // CHECK-ABI-SOFT-MIPS16: "-msoft-float" // CHECK-ABI-SOFT-MIPS16: "-mfloat-abi" "soft" -// CHECK-ABI-SOFT-MIPS16: "-target-feature" "+soft-float" |