diff options
Diffstat (limited to 'test/Driver/mips-as.c')
-rw-r--r-- | test/Driver/mips-as.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/Driver/mips-as.c b/test/Driver/mips-as.c index 216b656..df925f1 100644 --- a/test/Driver/mips-as.c +++ b/test/Driver/mips-as.c @@ -115,3 +115,35 @@ // RUN: | FileCheck -check-prefix=MIPS-NDSPR2 %s // MIPS-NDSPR2: as{{(.exe)?}}" // MIPS-NDSPR2-NOT: "-mdspr2" +// +// RUN: %clang -target mips-linux-gnu -mnan=legacy -mnan=2008 -### \ +// RUN: -no-integrated-as -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=MIPS-NAN2008 %s +// MIPS-NAN2008: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" "-mnan=2008" +// +// RUN: %clang -target mips-linux-gnu -mnan=2008 -mnan=legacy -### \ +// RUN: -no-integrated-as -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=MIPS-NAN-LEGACY %s +// MIPS-NAN-LEGACY: as{{(.exe)?}}" +// MIPS-NAN_LEGACY-NOT: "-mnan={{.*}}" +// +// RUN: %clang -target mips-linux-gnu -mfp64 -mfp32 -### \ +// RUN: -no-integrated-as -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=MIPS-MFP32 %s +// MIPS-MFP32: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" "-mfp32" +// +// RUN: %clang -target mips-linux-gnu -mfp32 -mfp64 -### \ +// RUN: -no-integrated-as -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=MIPS-MFP64 %s +// MIPS-MFP64: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" "-mfp64" +// +// RUN: %clang -target mips-linux-gnu -mno-msa -mmsa -### \ +// RUN: -no-integrated-as -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=MIPS-MSA %s +// MIPS-MSA: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" "-mmsa" +// +// RUN: %clang -target mips-linux-gnu -mmsa -mno-msa -### \ +// RUN: -no-integrated-as -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=MIPS-NMSA %s +// MIPS-NMSA: as{{(.exe)?}}" +// MIPS-NMSA-NOT: "-mmsa" |