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