2012-04-07 03:15:24 +08:00
|
|
|
// Check passing options to the assembler for MIPS targets.
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2014-07-02 21:21:52 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32R2-EB-AS %s
|
2014-07-16 19:52:23 +08:00
|
|
|
// RUN: %clang -target mipsel-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c -EB %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32R2-EB-AS %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS32R2-EB-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-02 21:21:52 +08:00
|
|
|
// MIPS32R2-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
|
2012-05-30 03:07:33 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -fPIC -c %s 2>&1 \
|
2014-07-02 21:21:52 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32R2-EB-PIC %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS32R2-EB-PIC: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-call_nonpic" "-EB"
|
2014-07-02 21:21:52 +08:00
|
|
|
// MIPS32R2-EB-PIC: "-KPIC"
|
2012-04-07 03:15:24 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mipsel-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2014-07-02 21:21:52 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32R2-DEF-EL-AS %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS32R2-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EL"
|
2012-04-07 03:15:24 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -### \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: -no-integrated-as -fno-pic -c %s 2>&1 \
|
2014-07-02 21:21:52 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64R2-EB-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS64R2-EB-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-EB"
|
2012-04-07 03:15:24 +08:00
|
|
|
//
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: %clang -target mips64-linux-gnu -### \
|
2012-04-07 03:15:24 +08:00
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64R2-EB-AS-PIC %s
|
|
|
|
// MIPS64R2-EB-AS-PIC: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EB" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64el-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c -fno-pic %s 2>&1 \
|
2014-07-02 21:21:52 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64R2-DEF-EL-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS64R2-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-EL"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64el-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64R2-DEF-EL-AS-PIC %s
|
|
|
|
// MIPS64R2-DEF-EL-AS-PIC: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EL" "-KPIC"
|
2012-04-08 06:31:29 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-N32-PIC %s
|
|
|
|
// MIPS-N32-PIC: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "n32" "-call_nonpic" "-EB" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s -fno-pic 2>&1 \
|
2012-04-08 06:31:29 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-N32 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-N32: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "n32" "-mno-shared" "-call_nonpic" "-EB"
|
2012-09-10 16:32:41 +08:00
|
|
|
//
|
2013-02-27 22:55:49 +08:00
|
|
|
// RUN: %clang -target mipsel-linux-gnu -mabi=32 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2014-07-02 21:21:52 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32R2-EL-AS %s
|
2014-07-16 19:52:23 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mabi=32 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s -EL 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32R2-EL-AS %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS32R2-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EL"
|
2013-02-27 22:55:49 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64el-linux-gnu -mabi=64 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64R2-EL-AS-PIC %s
|
|
|
|
// MIPS64R2-EL-AS-PIC: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EL" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64el-linux-gnu -mabi=64 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s -fno-pic 2>&1 \
|
2014-07-02 21:21:52 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64R2-EL-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS64R2-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-EL"
|
2013-02-27 22:55:49 +08:00
|
|
|
//
|
2012-09-10 16:32:41 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -march=mips32r2 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-32R2 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2012-09-22 04:19:32 +08:00
|
|
|
//
|
2015-10-05 20:24:30 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -march=p5600 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-P5600 %s
|
|
|
|
// MIPS-P5600: as{{(.exe)?}}" "-march" "p5600" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
|
|
|
//
|
2014-07-04 20:37:04 +08:00
|
|
|
// RUN: %clang -target mips64-linux-gnu -march=octeon -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-OCTEON-PIC %s
|
|
|
|
// MIPS-OCTEON-PIC: as{{(.exe)?}}" "-march" "octeon" "-mabi" "64" "-EB" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -march=octeon -### \
|
|
|
|
// RUN: -no-integrated-as -c %s -fno-pic 2>&1 \
|
2014-07-04 20:37:04 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-OCTEON %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS-OCTEON: as{{(.exe)?}}" "-march" "octeon" "-mabi" "64" "-mno-shared" "-EB"
|
2014-07-04 20:37:04 +08:00
|
|
|
//
|
2014-07-04 20:36:56 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mips1 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-1 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-1: as{{(.exe)?}}" "-march" "mips1" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-04 20:36:56 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mips2 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-2 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-2: as{{(.exe)?}}" "-march" "mips2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-04 20:36:56 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mips3 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-3 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-3: as{{(.exe)?}}" "-march" "mips3" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-04 20:36:56 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mips4 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-4 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-4: as{{(.exe)?}}" "-march" "mips4" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-04 20:36:56 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mips5 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-5 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-5: as{{(.exe)?}}" "-march" "mips5" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-04 20:36:56 +08:00
|
|
|
//
|
2012-09-22 04:19:32 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mips32 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-32 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-32: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2012-09-22 04:19:32 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mips32r2 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R2 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2012-09-22 04:19:32 +08:00
|
|
|
//
|
2015-02-21 07:37:40 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mips32r3 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R3 %s
|
|
|
|
// MIPS-ALIAS-32R3: as{{(.exe)?}}" "-march" "mips32r3" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mips32r5 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R5 %s
|
|
|
|
// MIPS-ALIAS-32R5: as{{(.exe)?}}" "-march" "mips32r5" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
|
|
|
//
|
2014-07-09 22:21:18 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mips32r6 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R6 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-ALIAS-32R6: as{{(.exe)?}}" "-march" "mips32r6" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-09 22:21:18 +08:00
|
|
|
//
|
2014-06-30 16:10:01 +08:00
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64 -### \
|
2012-09-22 04:19:32 +08:00
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64-PIC %s
|
|
|
|
// MIPS-ALIAS-64-PIC: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64 -### \
|
|
|
|
// RUN: -no-integrated-as -c -fno-pic %s 2>&1 \
|
2012-09-22 04:19:32 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64 %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS-ALIAS-64: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-mno-shared" "-EB"
|
2012-09-22 04:19:32 +08:00
|
|
|
//
|
2014-06-30 16:10:01 +08:00
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64r2 -### \
|
2012-09-22 04:19:32 +08:00
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R2-PIC %s
|
|
|
|
// MIPS-ALIAS-64R2-PIC: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EB" "-KPIC"
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
2015-02-21 07:37:40 +08:00
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64r3 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R3-PIC %s
|
|
|
|
// MIPS-ALIAS-64R3-PIC: as{{(.exe)?}}" "-march" "mips64r3" "-mabi" "64" "-EB" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64r3 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s -fno-pic 2>&1 \
|
2015-02-21 07:37:40 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R3 %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS-ALIAS-64R3: as{{(.exe)?}}" "-march" "mips64r3" "-mabi" "64" "-mno-shared" "-EB"
|
2015-02-21 07:37:40 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64r5 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R5-PIC %s
|
|
|
|
// MIPS-ALIAS-64R5-PIC: as{{(.exe)?}}" "-march" "mips64r5" "-mabi" "64" "-EB" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64r5 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s -fno-pic 2>&1 \
|
2015-02-21 07:37:40 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R5 %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS-ALIAS-64R5: as{{(.exe)?}}" "-march" "mips64r5" "-mabi" "64" "-mno-shared" "-EB"
|
2015-02-21 07:37:40 +08:00
|
|
|
//
|
2014-07-09 22:21:18 +08:00
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64r6 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
2017-01-27 23:05:25 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R6-PIC %s
|
|
|
|
// MIPS-ALIAS-64R6-PIC: as{{(.exe)?}}" "-march" "mips64r6" "-mabi" "64" "-EB" "-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mips64r6 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s -fno-pic 2>&1 \
|
2014-07-09 22:21:18 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R6 %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS-ALIAS-64R6: as{{(.exe)?}}" "-march" "mips64r6" "-mabi" "64" "-mno-shared" "-EB"
|
2014-07-09 22:21:18 +08:00
|
|
|
//
|
2013-04-30 15:47:13 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mno-mips16 -mips16 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-16 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-16: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mips16"
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mips16 -mno-mips16 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-N16 %s
|
|
|
|
// MIPS-N16: as{{(.exe)?}}"
|
2014-07-16 19:52:23 +08:00
|
|
|
// MIPS-N16: -no-mips16
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mno-micromips -mmicromips -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-MICRO %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-MICRO: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mmicromips"
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mmicromips -mno-micromips -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-NMICRO %s
|
|
|
|
// MIPS-NMICRO: as{{(.exe)?}}"
|
2014-02-23 07:37:54 +08:00
|
|
|
// MIPS-NMICRO-NOT: {{[A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mmicromips"
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mno-dsp -mdsp -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-DSP %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-DSP: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mdsp"
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mdsp -mno-dsp -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-NDSP %s
|
|
|
|
// MIPS-NDSP: as{{(.exe)?}}"
|
2014-02-23 07:37:54 +08:00
|
|
|
// MIPS-NDSP-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mdsp"
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mno-dspr2 -mdspr2 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-DSPR2 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-DSPR2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mdspr2"
|
2013-04-30 15:47:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mdspr2 -mno-dspr2 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-NDSPR2 %s
|
|
|
|
// MIPS-NDSPR2: as{{(.exe)?}}"
|
2014-02-23 07:37:54 +08:00
|
|
|
// MIPS-NDSPR2-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mdspr2"
|
2013-09-24 17:09:16 +08:00
|
|
|
//
|
|
|
|
// 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
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-NAN2008: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mnan=2008"
|
2013-09-24 17:09:16 +08:00
|
|
|
//
|
|
|
|
// 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)?}}"
|
2014-02-23 07:37:54 +08:00
|
|
|
// MIPS-NAN-LEGACY-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mnan={{.*}}"
|
2013-11-20 21:53:20 +08:00
|
|
|
//
|
2014-07-16 19:52:23 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mfp64 -mfpxx -mfp32 -### \
|
2013-11-20 21:53:20 +08:00
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-MFP32 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-MFP32: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfp32"
|
2014-07-16 19:52:23 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mfp32 -mfp64 -mfpxx -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-MFPXX %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-MFPXX: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfpxx"
|
2013-11-20 21:53:20 +08:00
|
|
|
//
|
2014-07-16 19:52:23 +08:00
|
|
|
// RUN: %clang -target mips-linux-gnu -mfpxx -mfp32 -mfp64 -### \
|
2013-11-20 21:53:20 +08:00
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-MFP64 %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-MFP64: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfp64"
|
2013-11-26 19:58:04 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mno-msa -mmsa -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-MSA %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS-MSA: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mmsa"
|
2013-11-26 19:58:04 +08:00
|
|
|
//
|
|
|
|
// 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)?}}"
|
2014-02-23 07:37:54 +08:00
|
|
|
// MIPS-NMSA-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mmsa"
|
2014-07-02 23:21:50 +08:00
|
|
|
//
|
|
|
|
// We've already tested MIPS32r2 and MIPS64r2 thoroughly. Do minimal tests on
|
|
|
|
// the remaining CPU's since it was possible to pass on a -mabi with no value
|
|
|
|
// when the CPU name is absent from a StringSwitch in getMipsCPUAndABI()
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips1 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS1-EB-AS %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS1-EB-AS: as{{(.exe)?}}" "-march" "mips1" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-02 23:21:50 +08:00
|
|
|
// MIPS1-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips2 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS2-EB-AS %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS2-EB-AS: as{{(.exe)?}}" "-march" "mips2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-02 23:21:50 +08:00
|
|
|
// MIPS2-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips3 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS3-EB-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS3-EB-AS: as{{(.exe)?}}" "-march" "mips3" "-mabi" "64" "-EB" "-KPIC"
|
2014-07-02 23:21:50 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips4 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS4-EB-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS4-EB-AS: as{{(.exe)?}}" "-march" "mips4" "-mabi" "64" "-EB" "-KPIC"
|
2014-07-02 23:21:50 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips5 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS5-EB-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS5-EB-AS: as{{(.exe)?}}" "-march" "mips5" "-mabi" "64" "-EB" "-KPIC"
|
2014-07-02 23:21:50 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips32 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS32-EB-AS %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-02 23:21:50 +08:00
|
|
|
// MIPS32-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips32r6 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS32R6-EB-AS %s
|
2014-08-09 02:39:01 +08:00
|
|
|
// MIPS32R6-EB-AS: as{{(.exe)?}}" "-march" "mips32r6" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB"
|
2014-07-02 23:21:50 +08:00
|
|
|
// MIPS32R6-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC"
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips64 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS64-EB-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB" "-KPIC"
|
2014-07-02 23:21:50 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips64r6 \
|
|
|
|
// RUN: 2>&1 | FileCheck -check-prefix=MIPS64R6-EB-AS %s
|
2017-01-27 23:05:25 +08:00
|
|
|
// MIPS64R6-EB-AS: as{{(.exe)?}}" "-march" "mips64r6" "-mabi" "64" "-EB" "-KPIC"
|
2014-07-16 19:52:23 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msoft-float -mhard-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=HARDFLOAT --implicit-check-not=-msoft-float %s
|
|
|
|
// HARDFLOAT: as{{(.exe)?}}"
|
|
|
|
// HARDFLOAT: -mhard-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mhard-float -msoft-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=SOFTFLOAT --implicit-check-not=-mhard-float %s
|
|
|
|
// SOFTFLOAT: as{{(.exe)?}}"
|
|
|
|
// SOFTFLOAT: -msoft-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mno-odd-spreg -modd-spreg -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=ODDSPREG --implicit-check-not=-mno-odd-spreg %s
|
|
|
|
// ODDSPREG: as{{(.exe)?}}"
|
|
|
|
// ODDSPREG: -modd-spreg
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -modd-spreg -mno-odd-spreg -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=NOODDSPREG --implicit-check-not=-modd-spreg %s
|
|
|
|
// NOODDSPREG: as{{(.exe)?}}"
|
|
|
|
// NOODDSPREG: -mno-odd-spreg
|
2015-06-11 20:13:18 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mdouble-float -msingle-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=SINGLEFLOAT --implicit-check-not=-mdouble-float %s
|
|
|
|
// SINGLEFLOAT: as{{(.exe)?}}"
|
|
|
|
// SINGLEFLOAT: -msingle-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msingle-float -mdouble-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=DOUBLEFLOAT --implicit-check-not=-msingle-float %s
|
|
|
|
// DOUBLEFLOAT: as{{(.exe)?}}"
|
|
|
|
// DOUBLEFLOAT: -mdouble-float
|
2015-06-16 21:54:13 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msoft-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=SOFTFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
|
|
|
|
// SOFTFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// SOFTFLOAT-IMPLICIT-FPXX: -msoft-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msoft-float -mfpxx -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=SOFTFLOAT-EXPLICIT-FPXX %s
|
|
|
|
// SOFTFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// SOFTFLOAT-EXPLICIT-FPXX: -mfpxx
|
|
|
|
// SOFTFLOAT-EXPLICIT-FPXX: -msoft-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msoft-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MTI-SOFTFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
|
|
|
|
// MTI-SOFTFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// MTI-SOFTFLOAT-IMPLICIT-FPXX: -msoft-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msoft-float -mfpxx -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MTI-SOFTFLOAT-EXPLICIT-FPXX %s
|
|
|
|
// MTI-SOFTFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// MTI-SOFTFLOAT-EXPLICIT-FPXX: -mfpxx
|
|
|
|
// MTI-SOFTFLOAT-EXPLICIT-FPXX: -msoft-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msoft-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=IMG-SOFTFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
|
|
|
|
// IMG-SOFTFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// IMG-SOFTFLOAT-IMPLICIT-FPXX: -msoft-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msoft-float -mfpxx -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=IMG-SOFTFLOAT-EXPLICIT-FPXX %s
|
|
|
|
// IMG-SOFTFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// IMG-SOFTFLOAT-EXPLICIT-FPXX: -mfpxx
|
|
|
|
// IMG-SOFTFLOAT-EXPLICIT-FPXX: -msoft-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msingle-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=SINGLEFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
|
|
|
|
// SINGLEFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// SINGLEFLOAT-IMPLICIT-FPXX: -msingle-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msingle-float -mfpxx -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=SINGLEFLOAT-EXPLICIT-FPXX %s
|
|
|
|
// SINGLEFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// SINGLEFLOAT-EXPLICIT-FPXX: -mfpxx
|
|
|
|
// SINGLEFLOAT-EXPLICIT-FPXX: -msingle-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msingle-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MTI-SINGLEFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
|
|
|
|
// MTI-SINGLEFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// MTI-SINGLEFLOAT-IMPLICIT-FPXX: -msingle-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-mti-linux-gnu -### -no-integrated-as -msingle-float -mfpxx -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MTI-SINGLEFLOAT-EXPLICIT-FPXX %s
|
|
|
|
// MTI-SINGLEFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// MTI-SINGLEFLOAT-EXPLICIT-FPXX: -mfpxx
|
|
|
|
// MTI-SINGLEFLOAT-EXPLICIT-FPXX: -msingle-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msingle-float -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=IMG-SINGLEFLOAT-IMPLICIT-FPXX --implicit-check-not=-mfpxx %s
|
|
|
|
// IMG-SINGLEFLOAT-IMPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// IMG-SINGLEFLOAT-IMPLICIT-FPXX: -msingle-float
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-img-linux-gnu -### -no-integrated-as -msingle-float -mfpxx -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=IMG-SINGLEFLOAT-EXPLICIT-FPXX %s
|
|
|
|
// IMG-SINGLEFLOAT-EXPLICIT-FPXX: as{{(.exe)?}}"
|
|
|
|
// IMG-SINGLEFLOAT-EXPLICIT-FPXX: -mfpxx
|
|
|
|
// IMG-SINGLEFLOAT-EXPLICIT-FPXX: -msingle-float
|