diff options
Diffstat (limited to 'test/Driver/arm-mfpu.c')
-rw-r--r-- | test/Driver/arm-mfpu.c | 168 |
1 files changed, 159 insertions, 9 deletions
diff --git a/test/Driver/arm-mfpu.c b/test/Driver/arm-mfpu.c index 2e1c00dbcced2..2f8d64f02392c 100644 --- a/test/Driver/arm-mfpu.c +++ b/test/Driver/arm-mfpu.c @@ -2,6 +2,8 @@ // RUN: %clang -target arm-linux-eabi %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-DEFAULT %s +// CHECK-DEFAULT-NOT: "-target-feature" "+soft-float" +// CHECK-DEFAULT: "-target-feature" "+soft-float-abi" // CHECK-DEFAULT-NOT: "-target-feature" "+vfp2" // CHECK-DEFAULT-NOT: "-target-feature" "+vfp3" // CHECK-DEFAULT-NOT: "-target-feature" "+d16" @@ -19,23 +21,49 @@ // RUN: %clang -target arm-linux-eabi -mfpu=vfp %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfp %s -mfloat-abi=soft -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-2 %s +// CHECK-VFP-NOT: "-target-feature" "+soft-float" +// CHECK-VFP: "-target-feature" "+soft-float-abi" // CHECK-VFP: "-target-feature" "+vfp2" // CHECK-VFP: "-target-feature" "-vfp3" // CHECK-VFP: "-target-feature" "-vfp4" // CHECK-VFP: "-target-feature" "-fp-armv8" // CHECK-VFP: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP-2: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP-2: "-target-feature" "-vfp3" +// CHECK-SOFT-ABI-FP-2: "-target-feature" "-vfp4" +// CHECK-SOFT-ABI-FP-2: "-target-feature" "-fp-armv8" +// CHECK-SOFT-ABI-FP-2: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP-2: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-2: "-target-feature" "-vfp2" // RUN: %clang -target arm-linux-eabi -mfpu=vfp3 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP3 %s // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP3 %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-3 %s +// CHECK-VFP3-NOT: "-target-feature" "+soft-float" +// CHECK-VFP3: "-target-feature" "+soft-float-abi" // CHECK-VFP3: "-target-feature" "+vfp3" // CHECK-VFP3: "-target-feature" "-vfp4" // CHECK-VFP3: "-target-feature" "-fp-armv8" // CHECK-VFP3: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP-3: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP-3: "-target-feature" "-vfp2" +// CHECK-SOFT-ABI-FP-3: "-target-feature" "-vfp4" +// CHECK-SOFT-ABI-FP-3: "-target-feature" "-fp-armv8" +// CHECK-SOFT-ABI-FP-3: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP-3: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-3: "-target-feature" "-vfp3" // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-fp16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP3-FP16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-fp16 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-3 %s +// CHECK-VFP3-FP16-NOT: "-target-feature" "+soft-float" +// CHECK-VFP3-FP16: "-target-feature" "+soft-float-abi" // CHECK-VFP3-FP16: "-target-feature" "-fp-only-sp" // CHECK-VFP3-FP16: "-target-feature" "-d16" // CHECK-VFP3-FP16: "-target-feature" "+vfp3" @@ -49,6 +77,10 @@ // RUN: | FileCheck --check-prefix=CHECK-VFP3-D16 %s // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-d16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP3-D16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-d16 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-3 %s +// CHECK-VFP3-D16-NOT: "-target-feature" "+soft-float" +// CHECK-VFP3-D16: "-target-feature" "+soft-float-abi" // CHECK-VFP3-D16: "-target-feature" "-fp-only-sp" // CHECK-VFP3-D16: "-target-feature" "+d16" // CHECK-VFP3-D16: "-target-feature" "+vfp3" @@ -58,6 +90,10 @@ // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-d16-fp16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP3-D16-FP16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3-d16-fp16 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-3 %s +// CHECK-VFP3-D16-FP16-NOT: "-target-feature" "+soft-float" +// CHECK-VFP3-D16-FP16: "-target-feature" "+soft-float-abi" // CHECK-VFP3-D16-FP16: "-target-feature" "-fp-only-sp" // CHECK-VFP3-D16-FP16: "-target-feature" "+d16" // CHECK-VFP3-D16-FP16: "-target-feature" "+vfp3" @@ -69,6 +105,10 @@ // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3xd %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP3XD %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3xd -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-3 %s +// CHECK-VFP3XD-NOT: "-target-feature" "+soft-float" +// CHECK-VFP3XD: "-target-feature" "+soft-float-abi" // CHECK-VFP3XD: "-target-feature" "+fp-only-sp" // CHECK-VFP3XD: "-target-feature" "+d16" // CHECK-VFP3XD: "-target-feature" "+vfp3" @@ -80,6 +120,10 @@ // RUN: %clang -target arm-linux-eabi -mfpu=vfpv3xd-fp16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP3XD-FP16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv3xd-fp16 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-3 %s +// CHECK-VFP3XD-FP16-NOT: "-target-feature" "+soft-float" +// CHECK-VFP3XD-FP16: "-target-feature" "+soft-float-abi" // CHECK-VFP3XD-FP16: "-target-feature" "+fp-only-sp" // CHECK-VFP3XD-FP16: "-target-feature" "+d16" // CHECK-VFP3XD-FP16: "-target-feature" "+vfp3" @@ -93,14 +137,29 @@ // RUN: | FileCheck --check-prefix=CHECK-VFP4 %s // RUN: %clang -target arm-linux-eabi -mfpu=vfpv4 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP4 %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv4 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-4 %s +// CHECK-VFP4-NOT: "-target-feature" "+soft-float" +// CHECK-VFP4: "-target-feature" "+soft-float-abi" // CHECK-VFP4: "-target-feature" "+vfp4" // CHECK-VFP4: "-target-feature" "-fp-armv8" // CHECK-VFP4: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP-4: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP-4: "-target-feature" "-vfp2" +// CHECK-SOFT-ABI-FP-4: "-target-feature" "-vfp3" +// CHECK-SOFT-ABI-FP-4: "-target-feature" "-fp-armv8" +// CHECK-SOFT-ABI-FP-4: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP-4: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-4: "-target-feature" "-vfp4" // RUN: %clang -target arm-linux-eabi -mfpu=vfp4-d16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP4-D16 %s // RUN: %clang -target arm-linux-eabi -mfpu=vfpv4-d16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-VFP4-D16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=vfpv4-d16 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-4 %s +// CHECK-VFP4-D16-NOT: "-target-feature" "+soft-float" +// CHECK-VFP4-D16: "-target-feature" "+soft-float-abi" // CHECK-VFP4-D16: "-target-feature" "-fp-only-sp" // CHECK-VFP4-D16: "-target-feature" "+d16" // CHECK-VFP4-D16: "-target-feature" "+vfp4" @@ -111,6 +170,10 @@ // RUN: | FileCheck --check-prefix=CHECK-FP4-SP-D16 %s // RUN: %clang -target arm-linux-eabi -mfpu=fpv4-sp-d16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FP4-SP-D16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=fpv4-sp-d16 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-4 %s +// CHECK-FP4-SP-D16-NOT: "-target-feature" "+soft-float" +// CHECK-FP4-SP-D16: "-target-feature" "+soft-float-abi" // CHECK-FP4-SP-D16: "-target-feature" "+fp-only-sp" // CHECK-FP4-SP-D16: "-target-feature" "+d16" // CHECK-FP4-SP-D16: "-target-feature" "+vfp4" @@ -121,6 +184,10 @@ // RUN: | FileCheck --check-prefix=CHECK-FP5-SP-D16 %s // RUN: %clang -target arm-linux-eabi -mfpu=fpv5-sp-d16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FP5-SP-D16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=fp-armv8-sp-d16 -mfloat-abi=soft %s -### -o %t.o \ +// RUN: 2>&1 | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// CHECK-FP5-SP-D16-NOT: "-target-feature" "+soft-float" +// CHECK-FP5-SP-D16: "-target-feature" "+soft-float-abi" // CHECK-FP5-SP-D16: "-target-feature" "+fp-only-sp" // CHECK-FP5-SP-D16: "-target-feature" "+d16" // CHECK-FP5-SP-D16: "-target-feature" "+fp-armv8" @@ -131,18 +198,44 @@ // RUN: | FileCheck --check-prefix=CHECK-FP5-DP-D16 %s // RUN: %clang -target arm-linux-eabi -mfpu=fpv5-dp-d16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FP5-DP-D16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=fpv5-dp-d16 %s -mfloat-abi=soft -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-5 %s +// CHECK-FP5-DP-D16-NOT: "-target-feature" "+soft-float" +// CHECK-FP5-DP-D16: "-target-feature" "+soft-float-abi" // CHECK-FP5-DP-D16: "-target-feature" "-fp-only-sp" // CHECK-FP5-DP-D16: "-target-feature" "+d16" // CHECK-FP5-DP-D16: "-target-feature" "+fp-armv8" // CHECK-FP5-DP-D16: "-target-feature" "-neon" // CHECK-FP5-DP-D16: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "+soft-float" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "-vfp2" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "-vfp3" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "-vfp4" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-5: "-target-feature" "-fp-armv8" // RUN: %clang -target arm-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NEON %s +// RUN: %clang -target arm-linux-eabi -mfpu=neon -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-6 %s +// CHECK-NEON-NOT: "-target-feature" "+soft-float" // CHECK-NEON: "-target-feature" "+neon" +// CHECK-SOFT-ABI-FP-6: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP-6: "-target-feature" "-vfp2" +// CHECK-SOFT-ABI-FP-6: "-target-feature" "-vfp4" +// CHECK-SOFT-ABI-FP-6: "-target-feature" "-fp-armv8" +// CHECK-SOFT-ABI-FP-6: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-6: "-target-feature" "-vfp3" +// CHECK-SOFT-ABI-FP-6: "-target-feature" "-neon" // RUN: %clang -target arm-linux-eabi -mfpu=neon-fp16 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NEON-FP16 %s +// RUN: %clang -target arm-linux-eabi -mfpu=neon-fp16 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-6 %s +// CHECK-NEON-FP16-NOT: "-target-feature" "+soft-float" +// CHECK-NEON-FP16: "-target-feature" "+soft-float-abi" // CHECK-NEON-FP16: "-target-feature" "-fp-only-sp" // CHECK-NEON-FP16: "-target-feature" "-d16" // CHECK-NEON-FP16: "-target-feature" "+vfp3" @@ -154,48 +247,78 @@ // RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv3 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NEON-VFPV3 %s +// RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv3 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-6 %s +// CHECK-NEON-VFPV3-NOT: "-target-feature" "+soft-float" +// CHECK-NEON-VFPV3: "-target-feature" "+soft-float-abi" +// CHECK-NEON-VFPV3: "-target-feature" "+vfp3" // CHECK-NEON-VFPV3: "-target-feature" "+neon" // RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv4 %s -### -o %t.o 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NEON-VFPV4 %s +// RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv4 -mfloat-abi=soft %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-7 %s +// CHECK-NEON-VFPV4-NOT: "-target-feature" "+soft-float" +// CHECK-NEON-VFPV4: "-target-feature" "+soft-float-abi" // CHECK-NEON-VFPV4: "-target-feature" "+vfp4" // CHECK-NEON-VFPV4: "-target-feature" "+neon" +// CHECK-SOFT-ABI-FP-7: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP-7: "-target-feature" "-vfp2" +// CHECK-SOFT-ABI-FP-7: "-target-feature" "-vfp3" +// CHECK-SOFT-ABI-FP-7: "-target-feature" "-fp-armv8" +// CHECK-SOFT-ABI-FP-7: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-7: "-target-feature" "-vfp4" +// CHECK-SOFT-ABI-FP-7: "-target-feature" "-neon" // RUN: %clang -target arm-linux-eabi -msoft-float %s -### -o %t.o 2>&1 \ -// RUN: | FileCheck --check-prefix=CHECK-SOFT-FLOAT %s -// CHECK-SOFT-FLOAT: "-target-feature" "-neon" - +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s // RUN: %clang -target armv8 %s -### 2>&1 \ -// RUN: | FileCheck --check-prefix=CHECK-ARMV8-DEFAULT-SOFT-FP %s -// CHECK-ARMV8-DEFAULT-SOFT-FP: "-target-feature" "-neon" -// CHECK-ARMV8-DEFAULT-SOFT-FP: "-target-feature" "-crypto" +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv8a -mfpu=neon %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP-8 %s +// CHECK-SOFT-ABI-FP-8: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP-8: "-target-feature" "-vfp2" +// CHECK-SOFT-ABI-FP-8: "-target-feature" "-vfp4" +// CHECK-SOFT-ABI-FP-8: "-target-feature" "-fp-armv8" +// CHECK-SOFT-ABI-FP-8: "-target-feature" "-crypto" +// CHECK-SOFT-ABI-FP-8: "-target-feature" "-vfp3" +// CHECK-SOFT-ABI-FP-8: "-target-feature" "-neon" // RUN: %clang -target armv8 -mfpu=fp-armv8 %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-ARMV8-SOFT-FLOAT %s -// CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "+fp-armv8" -// CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "-neon" +// CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "+soft-float" +// CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "+soft-float-abi" +// NOT-CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "+fp-armv8" +// CHECK-ARMV9-SOFT-FLOAT: "-target-feature" "-neon" // CHECK-ARMV8-SOFT-FLOAT: "-target-feature" "-crypto" // RUN: %clang -target armv8-linux-gnueabihf -mfpu=fp-armv8 %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s -// CHECK-FP-ARMV8-NOT: "-target-feature" "+neon" +// CHECK-FP-ARMV8-NOT: "-target-feature" "+soft-float" +// CHECK-FP-ARMV8-NOT: "-target-feature" "+soft-float-abi" // CHECK-FP-ARMV8: "-target-feature" "+fp-armv8" // CHECK-FP-ARMV8: "-target-feature" "-neon" // CHECK-FP-ARMV8: "-target-feature" "-crypto" // RUN: %clang -target armv8-linux-gnueabihf -mfpu=neon-fp-armv8 %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s +// CHECK-NEON-FP-ARMV8-NOT: "-target-feature" "+soft-float" +// CHECK-NEON-FP-ARMV8-NOT: "-target-feature" "+soft-float-abi" // CHECK-NEON-FP-ARMV8: "-target-feature" "+fp-armv8" // CHECK-NEON-FP-ARMV8: "-target-feature" "+neon" // CHECK-NEON-FP-ARMV8: "-target-feature" "-crypto" // RUN: %clang -target armv8-linux-gnueabihf -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s +// CHECK-CRYPTO-NEON-FP-ARMV8-NOT: "-target-feature" "+soft-float" +// CHECK-CRYPTO-NEON-FP-ARMV8-NOT: "-target-feature" "+soft-float-abi" // CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+fp-armv8" // CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+crypto" // RUN: %clang -target armv8-linux-gnueabi -mfpu=none %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NO-FP %s +// CHECK-NO-FP-NOT: "-target-feature" "+soft-float" +// CHECK-NO-FP: "-target-feature" "+soft-float-abi" // CHECK-NO-FP: "-target-feature" "-fp-only-sp" // CHECK-NO-FP: "-target-feature" "-d16" // CHECK-NO-FP: "-target-feature" "-vfp2" @@ -209,8 +332,35 @@ // RUN: | FileCheck --check-prefix=CHECK-HF %s // RUN: %clang -target arm-linux-musleabihf %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-HF %s +// CHECK-HF-NOT: "-target-feature" "+soft-float" +// CHECK-HF-NOT: "-target-feature" "+soft-float-abi" // CHECK-HF: "-target-cpu" "arm1176jzf-s" // RUN: %clang -target armv7-apple-darwin -x assembler %s -### -c 2>&1 \ // RUN: | FileCheck --check-prefix=ASM %s // ASM-NOT: -target-feature + +// RUN: %clang -target armv8-linux-gnueabi -mfloat-abi=soft -mfpu=none %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv7-linux-gnueabi -mfloat-abi=soft -mfpu=none %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv6-linux-gnueabi -mfloat-abi=soft -mfpu=none %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv5-linux-gnueabi -mfloat-abi=soft -mfpu=none %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv4-linux-gnueabi -mfloat-abi=soft -mfpu=none %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv8-linux-gnueabi -msoft-float -mfpu=none %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv8-linux-gnueabi -mfloat-abi=soft %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// RUN: %clang -target armv8-linux-gnueabi -msoft-float %s -### -c 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-SOFT-ABI-FP %s +// CHECK-SOFT-ABI-FP: "-target-feature" "+soft-float" +// CHECK-SOFT-ABI-FP: "-target-feature" "+soft-float-abi" +// CHECK-SOFT-ABI-FP: "-target-feature" "-vfp2" +// CHECK-SOFT-ABI-FP: "-target-feature" "-vfp3" +// CHECK-SOFT-ABI-FP: "-target-feature" "-vfp4" +// CHECK-SOFT-ABI-FP: "-target-feature" "-fp-armv8" +// CHECK-SOFT-ABI-FP: "-target-feature" "-neon" +// CHECK-SOFT-ABI-FP: "-target-feature" "-crypto" |