1 // RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2>&1 | FileCheck -check-prefix=I386 %s 2 // I386: "-triple" "i386-unknown-unknown" 3 // I386: "-S" 4 // I386: "-disable-free" 5 // I386: "-mrelocation-model" "static" 6 // I386: "-mframe-pointer=all" 7 // I386: "-munwind-tables" 8 // I386: "-Os" 9 // I386: "-fvisibility" 10 // I386: "hidden" 11 // I386: "-o" 12 // I386: clang-translation 13 14 // RUN: %clang -target i386-apple-darwin9 -### -S %s -o %t.s 2>&1 | \ 15 // RUN: FileCheck -check-prefix=YONAH %s 16 // RUN: %clang -target i386-apple-macosx10.11 -### -S %s -o %t.s 2>&1 | \ 17 // RUN: FileCheck -check-prefix=YONAH %s 18 // YONAH: "-target-cpu" 19 // YONAH: "yonah" 20 21 // RUN: %clang -target x86_64-apple-darwin9 -### -S %s -o %t.s 2>&1 | \ 22 // RUN: FileCheck -check-prefix=CORE2 %s 23 // RUN: %clang -target x86_64-apple-macosx10.11 -### -S %s -o %t.s 2>&1 | \ 24 // RUN: FileCheck -check-prefix=CORE2 %s 25 // CORE2: "-target-cpu" 26 // CORE2: "core2" 27 28 // RUN: %clang -target x86_64h-apple-darwin -### -S %s -o %t.s 2>&1 | \ 29 // RUN: FileCheck -check-prefix=AVX2 %s 30 // RUN: %clang -target x86_64h-apple-macosx10.12 -### -S %s -o %t.s 2>&1 | \ 31 // RUN: FileCheck -check-prefix=AVX2 %s 32 // AVX2: "-target-cpu" 33 // AVX2: "core-avx2" 34 35 // RUN: %clang -target x86_64h-apple-darwin -march=skx -### %s -o /dev/null 2>&1 | \ 36 // RUN: FileCheck -check-prefix=X8664HSKX %s 37 // X8664HSKX: "-target-cpu" 38 // X8664HSKX: "skx" 39 40 // RUN: %clang -target i386-apple-macosx10.12 -### -S %s -o %t.s 2>&1 | \ 41 // RUN: FileCheck -check-prefix=PENRYN %s 42 // RUN: %clang -target x86_64-apple-macosx10.12 -### -S %s -o %t.s 2>&1 | \ 43 // RUN: FileCheck -check-prefix=PENRYN %s 44 // PENRYN: "-target-cpu" 45 // PENRYN: "penryn" 46 47 48 // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 2>&1 | \ 49 // RUN: FileCheck -check-prefix=ARMV7_DEFAULT %s 50 // ARMV7_DEFAULT: clang 51 // ARMV7_DEFAULT: "-cc1" 52 // ARMV7_DEFAULT-NOT: "-msoft-float" 53 // ARMV7_DEFAULT: "-mfloat-abi" "soft" 54 // ARMV7_DEFAULT-NOT: "-msoft-float" 55 // ARMV7_DEFAULT: "-x" "c" 56 57 // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 \ 58 // RUN: -msoft-float 2>&1 | FileCheck -check-prefix=ARMV7_SOFTFLOAT %s 59 // ARMV7_SOFTFLOAT: clang 60 // ARMV7_SOFTFLOAT: "-cc1" 61 // ARMV7_SOFTFLOAT: "-target-feature" 62 // ARMV7_SOFTFLOAT: "-neon" 63 // ARMV7_SOFTFLOAT: "-msoft-float" 64 // ARMV7_SOFTFLOAT: "-mfloat-abi" "soft" 65 // ARMV7_SOFTFLOAT: "-x" "c" 66 67 // RUN: %clang -target x86_64-apple-darwin10 -### -S %s -arch armv7 \ 68 // RUN: -mhard-float 2>&1 | FileCheck -check-prefix=ARMV7_HARDFLOAT %s 69 // ARMV7_HARDFLOAT: clang 70 // ARMV7_HARDFLOAT: "-cc1" 71 // ARMV7_HARDFLOAT-NOT: "-msoft-float" 72 // ARMV7_HARDFLOAT: "-mfloat-abi" "hard" 73 // ARMV7_HARDFLOAT-NOT: "-msoft-float" 74 // ARMV7_HARDFLOAT: "-x" "c" 75 76 // RUN: %clang -target arm64-apple-ios10 -### -S %s -arch arm64 2>&1 | \ 77 // RUN: FileCheck -check-prefix=ARM64-APPLE %s 78 // ARM64-APPLE: -munwind-table 79 80 // RUN: %clang -target arm64-apple-ios10 -### -ffreestanding -S %s -arch arm64 2>&1 | \ 81 // RUN: FileCheck -check-prefix=ARM64-FREESTANDING-APPLE %s 82 // 83 // RUN: %clang -target arm64-apple-ios10 -### -fno-unwind-tables -ffreestanding -S %s -arch arm64 2>&1 | \ 84 // RUN: FileCheck -check-prefix=ARM64-FREESTANDING-APPLE %s 85 // 86 // ARM64-FREESTANDING-APPLE-NOT: -munwind-table 87 88 // RUN: %clang -target arm64-apple-ios10 -### -funwind-tables -S %s -arch arm64 2>&1 | \ 89 // RUN: FileCheck -check-prefix=ARM64-EXPLICIT-UWTABLE-APPLE %s 90 // 91 // RUN: %clang -target arm64-apple-ios10 -### -ffreestanding -funwind-tables -S %s -arch arm64 2>&1 | \ 92 // RUN: FileCheck -check-prefix=ARM64-EXPLICIT-UWTABLE-APPLE %s 93 // 94 // ARM64-EXPLICIT-UWTABLE-APPLE: -munwind-table 95 96 // RUN: %clang -target arm64-apple-ios10 -fno-exceptions -### -S %s -arch arm64 2>&1 | \ 97 // RUN: FileCheck -check-prefix=ARM64-APPLE-EXCEP %s 98 // ARM64-APPLE-EXCEP-NOT: -munwind-table 99 100 // RUN: %clang -target armv7k-apple-watchos4.0 -### -S %s -arch armv7k 2>&1 | \ 101 // RUN: FileCheck -check-prefix=ARMV7K-APPLE %s 102 // ARMV7K-APPLE: -munwind-table 103 104 // RUN: %clang -target arm-linux -### -S %s -march=armv5e 2>&1 | \ 105 // RUN: FileCheck -check-prefix=ARMV5E %s 106 // ARMV5E: clang 107 // ARMV5E: "-cc1" 108 // ARMV5E: "-target-cpu" "arm1022e" 109 110 // RUN: %clang -target arm-linux -mtp=cp15 -### -S %s -arch armv7 2>&1 | \ 111 // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER-HARD %s 112 // ARMv7_THREAD_POINTER-HARD: "-target-feature" "+read-tp-hard" 113 114 // RUN: %clang -target arm-linux -mtp=soft -### -S %s -arch armv7 2>&1 | \ 115 // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_SOFT %s 116 // ARMv7_THREAD_POINTER_SOFT-NOT: "-target-feature" "+read-tp-hard" 117 118 // RUN: %clang -target arm-linux -### -S %s -arch armv7 2>&1 | \ 119 // RUN: FileCheck -check-prefix=ARMv7_THREAD_POINTER_NON %s 120 // ARMv7_THREAD_POINTER_NON-NOT: "-target-feature" "+read-tp-hard" 121 122 // RUN: %clang -target aarch64-linux -### -S %s -arch armv8a 2>&1 | \ 123 // RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_NON %s 124 // ARMv8_THREAD_POINTER_NON-NOT: "-target-feature" "+tpidr-el1" 125 // ARMv8_THREAD_POINTER_NON-NOT: "-target-feature" "+tpidr-el2" 126 // ARMv8_THREAD_POINTER_NON-NOT: "-target-feature" "+tpidr-el3" 127 128 // RUN: %clang -target aarch64-linux -### -S %s -arch armv8a -mtp=el0 2>&1 | \ 129 // RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL0 %s 130 // ARMv8_THREAD_POINTER_EL0-NOT: "-target-feature" "+tpidr-el1" 131 // ARMv8_THREAD_POINTER_EL0-NOT: "-target-feature" "+tpidr-el2" 132 // ARMv8_THREAD_POINTER_EL0-NOT: "-target-feature" "+tpidr-el3" 133 134 // RUN: %clang -target aarch64-linux -### -S %s -arch armv8a -mtp=el1 2>&1 | \ 135 // RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL1 %s 136 // ARMv8_THREAD_POINTER_EL1: "-target-feature" "+tpidr-el1" 137 // ARMv8_THREAD_POINTER_EL1-NOT: "-target-feature" "+tpidr-el2" 138 // ARMv8_THREAD_POINTER_EL1-NOT: "-target-feature" "+tpidr-el3" 139 140 // RUN: %clang -target aarch64-linux -### -S %s -arch armv8a -mtp=el2 2>&1 | \ 141 // RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL2 %s 142 // ARMv8_THREAD_POINTER_EL2-NOT: "-target-feature" "+tpidr-el1" 143 // ARMv8_THREAD_POINTER_EL2: "-target-feature" "+tpidr-el2" 144 // ARMv8_THREAD_POINTER_EL2-NOT: "-target-feature" "+tpidr-el3" 145 146 // RUN: %clang -target aarch64-linux -### -S %s -arch armv8a -mtp=el3 2>&1 | \ 147 // RUN: FileCheck -check-prefix=ARMv8_THREAD_POINTER_EL3 %s 148 // ARMv8_THREAD_POINTER_EL3-NOT: "-target-feature" "+tpidr-el1" 149 // ARMv8_THREAD_POINTER_EL3-NOT: "-target-feature" "+tpidr-el2" 150 // ARMv8_THREAD_POINTER_EL3: "-target-feature" "+tpidr-el3" 151 152 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 153 // RUN: -### -S %s -mcpu=G5 2>&1 | FileCheck -check-prefix=PPCG5 %s 154 // PPCG5: clang 155 // PPCG5: "-cc1" 156 // PPCG5: "-target-cpu" "g5" 157 158 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 159 // RUN: -### -S %s -mcpu=power7 2>&1 | FileCheck -check-prefix=PPCPWR7 %s 160 // PPCPWR7: clang 161 // PPCPWR7: "-cc1" 162 // PPCPWR7: "-target-cpu" "pwr7" 163 164 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 165 // RUN: -### -S %s -mcpu=power8 2>&1 | FileCheck -check-prefix=PPCPWR8 %s 166 // PPCPWR8: clang 167 // PPCPWR8: "-cc1" 168 // PPCPWR8: "-target-cpu" "pwr8" 169 170 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 171 // RUN: -### -S %s -mcpu=630 2>&1 | FileCheck -check-prefix=PPC630 %s 172 // PPC630: clang 173 // PPC630: "-cc1" 174 // PPC630: "-target-cpu" "pwr3" 175 176 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 177 // RUN: -### -S %s -mcpu=power3 2>&1 | FileCheck -check-prefix=PPCPOWER3 %s 178 // PPCPOWER3: clang 179 // PPCPOWER3: "-cc1" 180 // PPCPOWER3: "-target-cpu" "pwr3" 181 182 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 183 // RUN: -### -S %s -mcpu=pwr3 2>&1 | FileCheck -check-prefix=PPCPWR3 %s 184 // PPCPWR3: clang 185 // PPCPWR3: "-cc1" 186 // PPCPWR3: "-target-cpu" "pwr3" 187 188 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 189 // RUN: -### -S %s -mcpu=power4 2>&1 | FileCheck -check-prefix=PPCPOWER4 %s 190 // PPCPOWER4: clang 191 // PPCPOWER4: "-cc1" 192 // PPCPOWER4: "-target-cpu" "pwr4" 193 194 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 195 // RUN: -### -S %s -mcpu=pwr4 2>&1 | FileCheck -check-prefix=PPCPWR4 %s 196 // PPCPWR4: clang 197 // PPCPWR4: "-cc1" 198 // PPCPWR4: "-target-cpu" "pwr4" 199 200 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 201 // RUN: -### -S %s -mcpu=power5 2>&1 | FileCheck -check-prefix=PPCPOWER5 %s 202 // PPCPOWER5: clang 203 // PPCPOWER5: "-cc1" 204 // PPCPOWER5: "-target-cpu" "pwr5" 205 206 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 207 // RUN: -### -S %s -mcpu=pwr5 2>&1 | FileCheck -check-prefix=PPCPWR5 %s 208 // PPCPWR5: clang 209 // PPCPWR5: "-cc1" 210 // PPCPWR5: "-target-cpu" "pwr5" 211 212 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 213 // RUN: -### -S %s -mcpu=power5x 2>&1 | FileCheck -check-prefix=PPCPOWER5X %s 214 // PPCPOWER5X: clang 215 // PPCPOWER5X: "-cc1" 216 // PPCPOWER5X: "-target-cpu" "pwr5x" 217 218 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 219 // RUN: -### -S %s -mcpu=pwr5x 2>&1 | FileCheck -check-prefix=PPCPWR5X %s 220 // PPCPWR5X: clang 221 // PPCPWR5X: "-cc1" 222 // PPCPWR5X: "-target-cpu" "pwr5x" 223 224 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 225 // RUN: -### -S %s -mcpu=power6 2>&1 | FileCheck -check-prefix=PPCPOWER6 %s 226 // PPCPOWER6: clang 227 // PPCPOWER6: "-cc1" 228 // PPCPOWER6: "-target-cpu" "pwr6" 229 230 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 231 // RUN: -### -S %s -mcpu=pwr6 2>&1 | FileCheck -check-prefix=PPCPWR6 %s 232 // PPCPWR6: clang 233 // PPCPWR6: "-cc1" 234 // PPCPWR6: "-target-cpu" "pwr6" 235 236 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 237 // RUN: -### -S %s -mcpu=power6x 2>&1 | FileCheck -check-prefix=PPCPOWER6X %s 238 // PPCPOWER6X: clang 239 // PPCPOWER6X: "-cc1" 240 // PPCPOWER6X: "-target-cpu" "pwr6x" 241 242 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 243 // RUN: -### -S %s -mcpu=pwr6x 2>&1 | FileCheck -check-prefix=PPCPWR6X %s 244 // PPCPWR6X: clang 245 // PPCPWR6X: "-cc1" 246 // PPCPWR6X: "-target-cpu" "pwr6x" 247 248 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 249 // RUN: -### -S %s -mcpu=power7 2>&1 | FileCheck -check-prefix=PPCPOWER7 %s 250 // PPCPOWER7: clang 251 // PPCPOWER7: "-cc1" 252 // PPCPOWER7: "-target-cpu" "pwr7" 253 254 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 255 // RUN: -### -S %s -mcpu=powerpc 2>&1 | FileCheck -check-prefix=PPCPOWERPC %s 256 // PPCPOWERPC: clang 257 // PPCPOWERPC: "-cc1" 258 // PPCPOWERPC: "-target-cpu" "ppc" 259 260 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 261 // RUN: -### -S %s -mcpu=powerpc64 2>&1 | FileCheck -check-prefix=PPCPOWERPC64 %s 262 // PPCPOWERPC64: clang 263 // PPCPOWERPC64: "-cc1" 264 // PPCPOWERPC64: "-target-cpu" "ppc64" 265 266 // RUN: %clang -target powerpc64-unknown-linux-gnu \ 267 // RUN: -### -S %s 2>&1 | FileCheck -check-prefix=PPC64NS %s 268 // PPC64NS: clang 269 // PPC64NS: "-cc1" 270 // PPC64NS: "-target-cpu" "ppc64" 271 272 // RUN: %clang -target powerpc-fsl-linux -### -S %s \ 273 // RUN: -mcpu=e500 2>&1 | FileCheck -check-prefix=PPCE500 %s 274 // PPCE500: clang 275 // PPCE500: "-cc1" 276 // PPCE500: "-target-cpu" "e500" 277 278 // RUN: %clang -target powerpc-fsl-linux -### -S %s \ 279 // RUN: -mcpu=8548 2>&1 | FileCheck -check-prefix=PPC8548 %s 280 // PPC8548: clang 281 // PPC8548: "-cc1" 282 // PPC8548: "-target-cpu" "e500" 283 284 // RUN: %clang -target powerpc-fsl-linux -### -S %s \ 285 // RUN: -mcpu=e500mc 2>&1 | FileCheck -check-prefix=PPCE500MC %s 286 // PPCE500MC: clang 287 // PPCE500MC: "-cc1" 288 // PPCE500MC: "-target-cpu" "e500mc" 289 290 // RUN: %clang -target powerpc64-fsl-linux -### -S \ 291 // RUN: %s -mcpu=e5500 2>&1 | FileCheck -check-prefix=PPCE5500 %s 292 // PPCE5500: clang 293 // PPCE5500: "-cc1" 294 // PPCE5500: "-target-cpu" "e5500" 295 296 // RUN: %clang -target amd64-unknown-openbsd5.2 -### -S %s 2>&1 | \ 297 // RUN: FileCheck -check-prefix=AMD64 %s 298 // AMD64: clang 299 // AMD64: "-cc1" 300 // AMD64: "-triple" 301 // AMD64: "amd64-unknown-openbsd5.2" 302 // AMD64: "-munwind-tables" 303 304 // RUN: %clang -target amd64--mingw32 -### -S %s 2>&1 | \ 305 // RUN: FileCheck -check-prefix=AMD64-MINGW %s 306 // AMD64-MINGW: clang 307 // AMD64-MINGW: "-cc1" 308 // AMD64-MINGW: "-triple" 309 // AMD64-MINGW: "amd64-unknown-windows-gnu" 310 // AMD64-MINGW: "-munwind-tables" 311 312 // RUN: %clang -target i686-linux-android -### -S %s 2>&1 \ 313 // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \ 314 // RUN: | FileCheck --check-prefix=ANDROID-X86 %s 315 // ANDROID-X86: clang 316 // ANDROID-X86: "-target-cpu" "i686" 317 // ANDROID-X86: "-target-feature" "+ssse3" 318 319 // RUN: %clang -target x86_64-linux-android -### -S %s 2>&1 \ 320 // RUN: --sysroot=%S/Inputs/basic_android_tree/sysroot \ 321 // RUN: | FileCheck --check-prefix=ANDROID-X86_64 %s 322 // ANDROID-X86_64: clang 323 // ANDROID-X86_64: "-target-cpu" "x86-64" 324 // ANDROID-X86_64: "-target-feature" "+sse4.2" 325 // ANDROID-X86_64: "-target-feature" "+popcnt" 326 // ANDROID-X86_64: "-target-feature" "+cx16" 327 328 // RUN: %clang -target mips-linux-gnu -### -S %s 2>&1 | \ 329 // RUN: FileCheck -check-prefix=MIPS %s 330 // MIPS: clang 331 // MIPS: "-cc1" 332 // MIPS: "-target-cpu" "mips32r2" 333 // MIPS: "-mfloat-abi" "hard" 334 335 // RUN: %clang -target mipsisa32r6-linux-gnu -### -S %s 2>&1 | \ 336 // RUN: FileCheck -check-prefix=MIPSR6 %s 337 // MIPSR6: clang 338 // MIPSR6: "-cc1" 339 // MIPSR6: "-target-cpu" "mips32r6" 340 // MIPSR6: "-mfloat-abi" "hard" 341 342 // RUN: %clang -target mipsel-linux-gnu -### -S %s 2>&1 | \ 343 // RUN: FileCheck -check-prefix=MIPSEL %s 344 // MIPSEL: clang 345 // MIPSEL: "-cc1" 346 // MIPSEL: "-target-cpu" "mips32r2" 347 // MIPSEL: "-mfloat-abi" "hard" 348 349 // RUN: %clang -target mipsisa32r6el-linux-gnu -### -S %s 2>&1 | \ 350 // RUN: FileCheck -check-prefix=MIPSR6EL %s 351 // MIPSR6EL: clang 352 // MIPSR6EL: "-cc1" 353 // MIPSR6EL: "-target-cpu" "mips32r6" 354 // MIPSR6EL: "-mfloat-abi" "hard" 355 356 // RUN: %clang -target mipsel-linux-android -### -S %s 2>&1 | \ 357 // RUN: FileCheck -check-prefix=MIPSEL-ANDROID %s 358 // MIPSEL-ANDROID: clang 359 // MIPSEL-ANDROID: "-cc1" 360 // MIPSEL-ANDROID: "-target-cpu" "mips32" 361 // MIPSEL-ANDROID: "-target-feature" "+fpxx" 362 // MIPSEL-ANDROID: "-target-feature" "+nooddspreg" 363 // MIPSEL-ANDROID: "-mfloat-abi" "hard" 364 365 // RUN: %clang -target mipsel-linux-android -### -S %s -mcpu=mips32r6 2>&1 | \ 366 // RUN: FileCheck -check-prefix=MIPSEL-ANDROID-R6 %s 367 // MIPSEL-ANDROID-R6: clang 368 // MIPSEL-ANDROID-R6: "-cc1" 369 // MIPSEL-ANDROID-R6: "-target-cpu" "mips32r6" 370 // MIPSEL-ANDROID-R6: "-target-feature" "+fp64" 371 // MIPSEL-ANDROID-R6: "-target-feature" "+nooddspreg" 372 // MIPSEL-ANDROID-R6: "-mfloat-abi" "hard" 373 374 // RUN: %clang -target mips64-linux-gnu -### -S %s 2>&1 | \ 375 // RUN: FileCheck -check-prefix=MIPS64 %s 376 // MIPS64: clang 377 // MIPS64: "-cc1" 378 // MIPS64: "-target-cpu" "mips64r2" 379 // MIPS64: "-mfloat-abi" "hard" 380 381 // RUN: %clang -target mipsisa64r6-linux-gnu -### -S %s 2>&1 | \ 382 // RUN: FileCheck -check-prefix=MIPS64R6 %s 383 // MIPS64R6: clang 384 // MIPS64R6: "-cc1" 385 // MIPS64R6: "-target-cpu" "mips64r6" 386 // MIPS64R6: "-mfloat-abi" "hard" 387 388 // RUN: %clang -target mips64el-linux-gnu -### -S %s 2>&1 | \ 389 // RUN: FileCheck -check-prefix=MIPS64EL %s 390 // MIPS64EL: clang 391 // MIPS64EL: "-cc1" 392 // MIPS64EL: "-target-cpu" "mips64r2" 393 // MIPS64EL: "-mfloat-abi" "hard" 394 395 // RUN: %clang -target mipsisa64r6el-linux-gnu -### -S %s 2>&1 | \ 396 // RUN: FileCheck -check-prefix=MIPS64R6EL %s 397 // MIPS64R6EL: clang 398 // MIPS64R6EL: "-cc1" 399 // MIPS64R6EL: "-target-cpu" "mips64r6" 400 // MIPS64R6EL: "-mfloat-abi" "hard" 401 402 // RUN: %clang -target mips64-linux-gnuabi64 -### -S %s 2>&1 | \ 403 // RUN: FileCheck -check-prefix=MIPS64-GNUABI64 %s 404 // MIPS64-GNUABI64: clang 405 // MIPS64-GNUABI64: "-cc1" 406 // MIPS64-GNUABI64: "-target-cpu" "mips64r2" 407 // MIPS64-GNUABI64: "-target-abi" "n64" 408 // MIPS64-GNUABI64: "-mfloat-abi" "hard" 409 410 // RUN: %clang -target mipsisa64r6-linux-gnuabi64 -### -S %s 2>&1 | \ 411 // RUN: FileCheck -check-prefix=MIPS64R6-GNUABI64 %s 412 // MIPS64R6-GNUABI64: clang 413 // MIPS64R6-GNUABI64: "-cc1" 414 // MIPS64R6-GNUABI64: "-target-cpu" "mips64r6" 415 // MIPS64R6-GNUABI64: "-target-abi" "n64" 416 // MIPS64R6-GNUABI64: "-mfloat-abi" "hard" 417 418 // RUN: %clang -target mips64el-linux-gnuabi64 -### -S %s 2>&1 | \ 419 // RUN: FileCheck -check-prefix=MIPS64EL-GNUABI64 %s 420 // MIPS64EL-GNUABI64: clang 421 // MIPS64EL-GNUABI64: "-cc1" 422 // MIPS64EL-GNUABI64: "-target-cpu" "mips64r2" 423 // MIPS64EL-GNUABI64: "-target-abi" "n64" 424 // MIPS64EL-GNUABI64: "-mfloat-abi" "hard" 425 426 // RUN: %clang -target mipsisa64r6el-linux-gnuabi64 -### -S %s 2>&1 | \ 427 // RUN: FileCheck -check-prefix=MIPS64R6EL-GNUABI64 %s 428 // MIPS64R6EL-GNUABI64: clang 429 // MIPS64R6EL-GNUABI64: "-cc1" 430 // MIPS64R6EL-GNUABI64: "-target-cpu" "mips64r6" 431 // MIPS64R6EL-GNUABI64: "-target-abi" "n64" 432 // MIPS64R6EL-GNUABI64: "-mfloat-abi" "hard" 433 434 // RUN: %clang -target mips64-linux-gnuabin32 -### -S %s 2>&1 | \ 435 // RUN: FileCheck -check-prefix=MIPSN32 %s 436 // MIPSN32: clang 437 // MIPSN32: "-cc1" 438 // MIPSN32: "-target-cpu" "mips64r2" 439 // MIPSN32: "-target-abi" "n32" 440 // MIPSN32: "-mfloat-abi" "hard" 441 442 // RUN: %clang -target mipsisa64r6-linux-gnuabin32 -### -S %s 2>&1 | \ 443 // RUN: FileCheck -check-prefix=MIPSN32R6 %s 444 // MIPSN32R6: clang 445 // MIPSN32R6: "-cc1" 446 // MIPSN32R6: "-target-cpu" "mips64r6" 447 // MIPSN32R6: "-target-abi" "n32" 448 // MIPSN32R6: "-mfloat-abi" "hard" 449 450 // RUN: %clang -target mips64el-linux-gnuabin32 -### -S %s 2>&1 | \ 451 // RUN: FileCheck -check-prefix=MIPSN32EL %s 452 // MIPSN32EL: clang 453 // MIPSN32EL: "-cc1" 454 // MIPSN32EL: "-target-cpu" "mips64r2" 455 // MIPSN32EL: "-target-abi" "n32" 456 // MIPSN32EL: "-mfloat-abi" "hard" 457 458 // RUN: %clang -target mipsisa64r6el-linux-gnuabin32 -### -S %s 2>&1 | \ 459 // RUN: FileCheck -check-prefix=MIPSN32R6EL %s 460 // MIPSN32R6EL: clang 461 // MIPSN32R6EL: "-cc1" 462 // MIPSN32R6EL: "-target-cpu" "mips64r6" 463 // MIPSN32R6EL: "-target-abi" "n32" 464 // MIPSN32R6EL: "-mfloat-abi" "hard" 465 466 // RUN: %clang -target mips64el-linux-android -### -S %s 2>&1 | \ 467 // RUN: FileCheck -check-prefix=MIPS64EL-ANDROID %s 468 // MIPS64EL-ANDROID: clang 469 // MIPS64EL-ANDROID: "-cc1" 470 // MIPS64EL-ANDROID: "-target-cpu" "mips64r6" 471 // MIPS64EL-ANDROID: "-mfloat-abi" "hard" 472