Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 1 | // Check passing options to the assembler for MIPS targets. |
| 2 | // |
| 3 | // RUN: %clang -target mips-linux-gnu -### \ |
| 4 | // RUN: -no-integrated-as -c %s 2>&1 \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 5 | // RUN: | FileCheck -check-prefix=MIPS32R2-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 6 | // RUN: %clang -target mipsel-linux-gnu -### \ |
| 7 | // RUN: -no-integrated-as -c -EB %s 2>&1 \ |
| 8 | // RUN: | FileCheck -check-prefix=MIPS32R2-EB-AS %s |
| 9 | // MIPS32R2-EB-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 10 | // MIPS32R2-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC" |
Simon Atanasyan | 1f0646e | 2012-05-29 19:07:33 +0000 | [diff] [blame] | 11 | // |
| 12 | // RUN: %clang -target mips-linux-gnu -### \ |
| 13 | // RUN: -no-integrated-as -fPIC -c %s 2>&1 \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 14 | // RUN: | FileCheck -check-prefix=MIPS32R2-EB-PIC %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 15 | // MIPS32R2-EB-PIC: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 16 | // MIPS32R2-EB-PIC: "-KPIC" |
Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 17 | // |
| 18 | // RUN: %clang -target mipsel-linux-gnu -### \ |
| 19 | // RUN: -no-integrated-as -c %s 2>&1 \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 20 | // RUN: | FileCheck -check-prefix=MIPS32R2-DEF-EL-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 21 | // MIPS32R2-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EL" |
Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 22 | // |
| 23 | // RUN: %clang -target mips64-linux-gnu -### \ |
| 24 | // RUN: -no-integrated-as -c %s 2>&1 \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 25 | // RUN: | FileCheck -check-prefix=MIPS64R2-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 26 | // MIPS64R2-EB-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Simon Atanasyan | 5f0a1c1 | 2012-04-06 19:15:24 +0000 | [diff] [blame] | 27 | // |
| 28 | // RUN: %clang -target mips64el-linux-gnu -### \ |
| 29 | // RUN: -no-integrated-as -c %s 2>&1 \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 30 | // RUN: | FileCheck -check-prefix=MIPS64R2-DEF-EL-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 31 | // MIPS64R2-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-KPIC" "-EL" |
Simon Atanasyan | 073a780 | 2012-04-07 22:31:29 +0000 | [diff] [blame] | 32 | // |
| 33 | // RUN: %clang -target mips-linux-gnu -mabi=eabi -### \ |
| 34 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 35 | // RUN: | FileCheck -check-prefix=MIPS-EABI %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 36 | // MIPS-EABI: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "eabi" "-mno-shared" "-call_nonpic" "-EB" |
Simon Atanasyan | 073a780 | 2012-04-07 22:31:29 +0000 | [diff] [blame] | 37 | // |
| 38 | // RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \ |
| 39 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 40 | // RUN: | FileCheck -check-prefix=MIPS-N32 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 41 | // MIPS-N32: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "n32" "-mno-shared" "-call_nonpic" "-EB" |
Simon Atanasyan | 89d83ff | 2012-09-10 08:32:41 +0000 | [diff] [blame] | 42 | // |
Simon Atanasyan | e9616a4 | 2013-02-27 14:55:49 +0000 | [diff] [blame] | 43 | // RUN: %clang -target mipsel-linux-gnu -mabi=32 -### \ |
| 44 | // RUN: -no-integrated-as -c %s 2>&1 \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 45 | // RUN: | FileCheck -check-prefix=MIPS32R2-EL-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 46 | // RUN: %clang -target mips-linux-gnu -mabi=32 -### \ |
| 47 | // RUN: -no-integrated-as -c %s -EL 2>&1 \ |
| 48 | // RUN: | FileCheck -check-prefix=MIPS32R2-EL-AS %s |
| 49 | // MIPS32R2-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EL" |
Simon Atanasyan | e9616a4 | 2013-02-27 14:55:49 +0000 | [diff] [blame] | 50 | // |
| 51 | // RUN: %clang -target mips64el-linux-gnu -mabi=64 -### \ |
| 52 | // RUN: -no-integrated-as -c %s 2>&1 \ |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 53 | // RUN: | FileCheck -check-prefix=MIPS64R2-EL-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 54 | // MIPS64R2-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-KPIC" "-EL" |
Simon Atanasyan | e9616a4 | 2013-02-27 14:55:49 +0000 | [diff] [blame] | 55 | // |
Simon Atanasyan | 89d83ff | 2012-09-10 08:32:41 +0000 | [diff] [blame] | 56 | // RUN: %clang -target mips-linux-gnu -march=mips32r2 -### \ |
| 57 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 58 | // RUN: | FileCheck -check-prefix=MIPS-32R2 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 59 | // MIPS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Simon Atanasyan | 8e1c598 | 2012-09-21 20:19:32 +0000 | [diff] [blame] | 60 | // |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 61 | // RUN: %clang -target mips64-linux-gnu -march=octeon -### \ |
| 62 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 63 | // RUN: | FileCheck -check-prefix=MIPS-OCTEON %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 64 | // MIPS-OCTEON: as{{(.exe)?}}" "-march" "octeon" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 65 | // |
| 66 | // RUN: %clang -target mips-linux-gnu -mips1 -### \ |
| 67 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 68 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-1 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 69 | // MIPS-ALIAS-1: as{{(.exe)?}}" "-march" "mips1" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 70 | // |
| 71 | // RUN: %clang -target mips-linux-gnu -mips2 -### \ |
| 72 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 73 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-2 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 74 | // MIPS-ALIAS-2: as{{(.exe)?}}" "-march" "mips2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 75 | // |
| 76 | // RUN: %clang -target mips-linux-gnu -mips3 -### \ |
| 77 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 78 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-3 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 79 | // MIPS-ALIAS-3: as{{(.exe)?}}" "-march" "mips3" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 80 | // |
| 81 | // RUN: %clang -target mips-linux-gnu -mips4 -### \ |
| 82 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 83 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-4 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 84 | // MIPS-ALIAS-4: as{{(.exe)?}}" "-march" "mips4" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 85 | // |
| 86 | // RUN: %clang -target mips-linux-gnu -mips5 -### \ |
| 87 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 88 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-5 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 89 | // MIPS-ALIAS-5: as{{(.exe)?}}" "-march" "mips5" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 90 | // |
Simon Atanasyan | 8e1c598 | 2012-09-21 20:19:32 +0000 | [diff] [blame] | 91 | // RUN: %clang -target mips-linux-gnu -mips32 -### \ |
| 92 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 93 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-32 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 94 | // MIPS-ALIAS-32: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Simon Atanasyan | 8e1c598 | 2012-09-21 20:19:32 +0000 | [diff] [blame] | 95 | // |
| 96 | // RUN: %clang -target mips-linux-gnu -mips32r2 -### \ |
| 97 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 98 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R2 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 99 | // MIPS-ALIAS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Simon Atanasyan | 8e1c598 | 2012-09-21 20:19:32 +0000 | [diff] [blame] | 100 | // |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 101 | // RUN: %clang -target mips-linux-gnu -mips32r3 -### \ |
| 102 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 103 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R3 %s |
| 104 | // MIPS-ALIAS-32R3: as{{(.exe)?}}" "-march" "mips32r3" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
| 105 | // |
| 106 | // RUN: %clang -target mips-linux-gnu -mips32r5 -### \ |
| 107 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 108 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R5 %s |
| 109 | // MIPS-ALIAS-32R5: as{{(.exe)?}}" "-march" "mips32r5" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
| 110 | // |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 111 | // RUN: %clang -target mips-linux-gnu -mips32r6 -### \ |
| 112 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 113 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R6 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 114 | // MIPS-ALIAS-32R6: as{{(.exe)?}}" "-march" "mips32r6" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 115 | // |
| 116 | // RUN: %clang -target mips64-linux-gnu -mips64 -### \ |
Simon Atanasyan | 8e1c598 | 2012-09-21 20:19:32 +0000 | [diff] [blame] | 117 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 118 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-64 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 119 | // MIPS-ALIAS-64: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Simon Atanasyan | 8e1c598 | 2012-09-21 20:19:32 +0000 | [diff] [blame] | 120 | // |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 121 | // RUN: %clang -target mips64-linux-gnu -mips64r2 -### \ |
Simon Atanasyan | 8e1c598 | 2012-09-21 20:19:32 +0000 | [diff] [blame] | 122 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 123 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R2 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 124 | // MIPS-ALIAS-64R2: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 125 | // |
Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 126 | // RUN: %clang -target mips64-linux-gnu -mips64r3 -### \ |
| 127 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 128 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R3 %s |
| 129 | // MIPS-ALIAS-64R3: as{{(.exe)?}}" "-march" "mips64r3" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
| 130 | // |
| 131 | // RUN: %clang -target mips64-linux-gnu -mips64r5 -### \ |
| 132 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 133 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R5 %s |
| 134 | // MIPS-ALIAS-64R5: as{{(.exe)?}}" "-march" "mips64r5" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
| 135 | // |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 136 | // RUN: %clang -target mips64-linux-gnu -mips64r6 -### \ |
| 137 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 138 | // RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R6 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 139 | // MIPS-ALIAS-64R6: as{{(.exe)?}}" "-march" "mips64r6" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 140 | // |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 141 | // RUN: %clang -target mips-linux-gnu -mno-mips16 -mips16 -### \ |
| 142 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 143 | // RUN: | FileCheck -check-prefix=MIPS-16 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 144 | // MIPS-16: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mips16" |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 145 | // |
| 146 | // RUN: %clang -target mips-linux-gnu -mips16 -mno-mips16 -### \ |
| 147 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 148 | // RUN: | FileCheck -check-prefix=MIPS-N16 %s |
| 149 | // MIPS-N16: as{{(.exe)?}}" |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 150 | // MIPS-N16: -no-mips16 |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 151 | // |
| 152 | // RUN: %clang -target mips-linux-gnu -mno-micromips -mmicromips -### \ |
| 153 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 154 | // RUN: | FileCheck -check-prefix=MIPS-MICRO %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 155 | // MIPS-MICRO: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mmicromips" |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 156 | // |
| 157 | // RUN: %clang -target mips-linux-gnu -mmicromips -mno-micromips -### \ |
| 158 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 159 | // RUN: | FileCheck -check-prefix=MIPS-NMICRO %s |
| 160 | // MIPS-NMICRO: as{{(.exe)?}}" |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 161 | // MIPS-NMICRO-NOT: {{[A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mmicromips" |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 162 | // |
| 163 | // RUN: %clang -target mips-linux-gnu -mno-dsp -mdsp -### \ |
| 164 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 165 | // RUN: | FileCheck -check-prefix=MIPS-DSP %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 166 | // MIPS-DSP: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mdsp" |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 167 | // |
| 168 | // RUN: %clang -target mips-linux-gnu -mdsp -mno-dsp -### \ |
| 169 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 170 | // RUN: | FileCheck -check-prefix=MIPS-NDSP %s |
| 171 | // MIPS-NDSP: as{{(.exe)?}}" |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 172 | // MIPS-NDSP-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mdsp" |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 173 | // |
| 174 | // RUN: %clang -target mips-linux-gnu -mno-dspr2 -mdspr2 -### \ |
| 175 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 176 | // RUN: | FileCheck -check-prefix=MIPS-DSPR2 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 177 | // MIPS-DSPR2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mdspr2" |
Simon Atanasyan | 9dbfc61 | 2013-04-30 07:47:13 +0000 | [diff] [blame] | 178 | // |
| 179 | // RUN: %clang -target mips-linux-gnu -mdspr2 -mno-dspr2 -### \ |
| 180 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 181 | // RUN: | FileCheck -check-prefix=MIPS-NDSPR2 %s |
| 182 | // MIPS-NDSPR2: as{{(.exe)?}}" |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 183 | // MIPS-NDSPR2-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mdspr2" |
Simon Atanasyan | fc12c4a | 2013-09-24 09:09:16 +0000 | [diff] [blame] | 184 | // |
| 185 | // RUN: %clang -target mips-linux-gnu -mnan=legacy -mnan=2008 -### \ |
| 186 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 187 | // RUN: | FileCheck -check-prefix=MIPS-NAN2008 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 188 | // MIPS-NAN2008: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mnan=2008" |
Simon Atanasyan | fc12c4a | 2013-09-24 09:09:16 +0000 | [diff] [blame] | 189 | // |
| 190 | // RUN: %clang -target mips-linux-gnu -mnan=2008 -mnan=legacy -### \ |
| 191 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 192 | // RUN: | FileCheck -check-prefix=MIPS-NAN-LEGACY %s |
| 193 | // MIPS-NAN-LEGACY: as{{(.exe)?}}" |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 194 | // MIPS-NAN-LEGACY-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mnan={{.*}}" |
Daniel Sanders | 6c5c3ad | 2013-12-02 10:00:07 +0000 | [diff] [blame] | 195 | // |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 196 | // RUN: %clang -target mips-linux-gnu -mfp64 -mfpxx -mfp32 -### \ |
Daniel Sanders | 6c5c3ad | 2013-12-02 10:00:07 +0000 | [diff] [blame] | 197 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 198 | // RUN: | FileCheck -check-prefix=MIPS-MFP32 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 199 | // MIPS-MFP32: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfp32" |
Daniel Sanders | 6c5c3ad | 2013-12-02 10:00:07 +0000 | [diff] [blame] | 200 | // |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 201 | // RUN: %clang -target mips-linux-gnu -mfp32 -mfp64 -mfpxx -### \ |
| 202 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 203 | // RUN: | FileCheck -check-prefix=MIPS-MFPXX %s |
| 204 | // MIPS-MFPXX: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfpxx" |
| 205 | // |
| 206 | // RUN: %clang -target mips-linux-gnu -mfpxx -mfp32 -mfp64 -### \ |
Daniel Sanders | 6c5c3ad | 2013-12-02 10:00:07 +0000 | [diff] [blame] | 207 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 208 | // RUN: | FileCheck -check-prefix=MIPS-MFP64 %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 209 | // MIPS-MFP64: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mfp64" |
Daniel Sanders | 0d5d6ff | 2013-12-02 10:14:43 +0000 | [diff] [blame] | 210 | // |
| 211 | // RUN: %clang -target mips-linux-gnu -mno-msa -mmsa -### \ |
| 212 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 213 | // RUN: | FileCheck -check-prefix=MIPS-MSA %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 214 | // MIPS-MSA: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" "-mmsa" |
Daniel Sanders | 0d5d6ff | 2013-12-02 10:14:43 +0000 | [diff] [blame] | 215 | // |
| 216 | // RUN: %clang -target mips-linux-gnu -mmsa -mno-msa -### \ |
| 217 | // RUN: -no-integrated-as -c %s 2>&1 \ |
| 218 | // RUN: | FileCheck -check-prefix=MIPS-NMSA %s |
| 219 | // MIPS-NMSA: as{{(.exe)?}}" |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 220 | // MIPS-NMSA-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-mmsa" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 221 | // |
| 222 | // We've already tested MIPS32r2 and MIPS64r2 thoroughly. Do minimal tests on |
| 223 | // the remaining CPU's since it was possible to pass on a -mabi with no value |
| 224 | // when the CPU name is absent from a StringSwitch in getMipsCPUAndABI() |
| 225 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips1 \ |
| 226 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS1-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 227 | // MIPS1-EB-AS: as{{(.exe)?}}" "-march" "mips1" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 228 | // MIPS1-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC" |
| 229 | // |
| 230 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips2 \ |
| 231 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS2-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 232 | // MIPS2-EB-AS: as{{(.exe)?}}" "-march" "mips2" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 233 | // MIPS2-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC" |
| 234 | // |
| 235 | // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips3 \ |
| 236 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS3-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 237 | // MIPS3-EB-AS: as{{(.exe)?}}" "-march" "mips3" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 238 | // |
| 239 | // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips4 \ |
| 240 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS4-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 241 | // MIPS4-EB-AS: as{{(.exe)?}}" "-march" "mips4" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 242 | // |
| 243 | // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips5 \ |
| 244 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS5-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 245 | // MIPS5-EB-AS: as{{(.exe)?}}" "-march" "mips5" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 246 | // |
| 247 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips32 \ |
| 248 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS32-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 249 | // MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 250 | // MIPS32-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC" |
| 251 | // |
| 252 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -c %s -mcpu=mips32r6 \ |
| 253 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS32R6-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 254 | // MIPS32R6-EB-AS: as{{(.exe)?}}" "-march" "mips32r6" "-mabi" "32" "-mno-shared" "-call_nonpic" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 255 | // MIPS32R6-EB-AS-NOT: "{{[ A-Za-z\\\/]*}}as{{(.exe)?}}{{.*}}"-KPIC" |
| 256 | // |
| 257 | // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips64 \ |
| 258 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS64-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 259 | // MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
Stephen Hines | c568f1e | 2014-07-21 00:47:37 -0700 | [diff] [blame] | 260 | // |
| 261 | // RUN: %clang -target mips64-linux-gnu -### -no-integrated-as -c %s -mcpu=mips64r6 \ |
| 262 | // RUN: 2>&1 | FileCheck -check-prefix=MIPS64R6-EB-AS %s |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 263 | // MIPS64R6-EB-AS: as{{(.exe)?}}" "-march" "mips64r6" "-mabi" "64" "-mno-shared" "-KPIC" "-EB" |
| 264 | // |
| 265 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -msoft-float -mhard-float -c %s 2>&1 \ |
| 266 | // RUN: | FileCheck -check-prefix=HARDFLOAT --implicit-check-not=-msoft-float %s |
| 267 | // HARDFLOAT: as{{(.exe)?}}" |
| 268 | // HARDFLOAT: -mhard-float |
| 269 | // |
| 270 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mhard-float -msoft-float -c %s 2>&1 \ |
| 271 | // RUN: | FileCheck -check-prefix=SOFTFLOAT --implicit-check-not=-mhard-float %s |
| 272 | // SOFTFLOAT: as{{(.exe)?}}" |
| 273 | // SOFTFLOAT: -msoft-float |
| 274 | // |
| 275 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -mno-odd-spreg -modd-spreg -c %s 2>&1 \ |
| 276 | // RUN: | FileCheck -check-prefix=ODDSPREG --implicit-check-not=-mno-odd-spreg %s |
| 277 | // ODDSPREG: as{{(.exe)?}}" |
| 278 | // ODDSPREG: -modd-spreg |
| 279 | // |
| 280 | // RUN: %clang -target mips-linux-gnu -### -no-integrated-as -modd-spreg -mno-odd-spreg -c %s 2>&1 \ |
| 281 | // RUN: | FileCheck -check-prefix=NOODDSPREG --implicit-check-not=-modd-spreg %s |
| 282 | // NOODDSPREG: as{{(.exe)?}}" |
| 283 | // NOODDSPREG: -mno-odd-spreg |