1f4a2713aSLionel Sambuc // Check passing options to the assembler for MIPS targets. 2f4a2713aSLionel Sambuc // 3f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -### \ 4f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 5f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS32-EB-AS %s 6*0a6a1f1dSLionel Sambuc // MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB" 7f4a2713aSLionel Sambuc // MIPS32-EB-AS-NOT: "-KPIC" 8f4a2713aSLionel Sambuc // 9f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -### \ 10f4a2713aSLionel Sambuc // RUN: -no-integrated-as -fPIC -c %s 2>&1 \ 11f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS32-EB-PIC %s 12*0a6a1f1dSLionel Sambuc // MIPS32-EB-PIC: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB" 13f4a2713aSLionel Sambuc // MIPS32-EB-PIC: "-KPIC" 14f4a2713aSLionel Sambuc // 15f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -### \ 16f4a2713aSLionel Sambuc // RUN: -no-integrated-as -fpic -c %s 2>&1 \ 17f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS32-EB-PIC-SMALL %s 18*0a6a1f1dSLionel Sambuc // MIPS32-EB-PIC-SMALL: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB" 19f4a2713aSLionel Sambuc // MIPS32-EB-PIC-SMALL: "-KPIC" 20f4a2713aSLionel Sambuc // 21f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -### \ 22f4a2713aSLionel Sambuc // RUN: -no-integrated-as -fPIE -c %s 2>&1 \ 23f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS32-EB-PIE %s 24*0a6a1f1dSLionel Sambuc // MIPS32-EB-PIE: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB" 25f4a2713aSLionel Sambuc // MIPS32-EB-PIE: "-KPIC" 26f4a2713aSLionel Sambuc // 27f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -### \ 28f4a2713aSLionel Sambuc // RUN: -no-integrated-as -fpie -c %s 2>&1 \ 29f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS32-EB-PIE-SMALL %s 30*0a6a1f1dSLionel Sambuc // MIPS32-EB-PIE-SMALL: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB" 31f4a2713aSLionel Sambuc // MIPS32-EB-PIE-SMALL: "-KPIC" 32f4a2713aSLionel Sambuc // 33f4a2713aSLionel Sambuc // RUN: %clang -target mipsel-unknown-freebsd -### \ 34f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 35f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS32-DEF-EL-AS %s 36*0a6a1f1dSLionel Sambuc // MIPS32-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EL" 37f4a2713aSLionel Sambuc // 38f4a2713aSLionel Sambuc // RUN: %clang -target mips64-unknown-freebsd -### \ 39f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 40f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS64-EB-AS %s 41*0a6a1f1dSLionel Sambuc // MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EB" 42f4a2713aSLionel Sambuc // 43f4a2713aSLionel Sambuc // RUN: %clang -target mips64el-unknown-freebsd -### \ 44f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 45f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS64-DEF-EL-AS %s 46*0a6a1f1dSLionel Sambuc // MIPS64-DEF-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EL" 47f4a2713aSLionel Sambuc // 48f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -mabi=eabi -### \ 49f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 50f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS-EABI %s 51*0a6a1f1dSLionel Sambuc // MIPS-EABI: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "eabi" "-EB" 52f4a2713aSLionel Sambuc // 53f4a2713aSLionel Sambuc // RUN: %clang -target mips64-unknown-freebsd -mabi=n32 -### \ 54f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 55f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS-N32 %s 56*0a6a1f1dSLionel Sambuc // MIPS-N32: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "n32" "-EB" 57f4a2713aSLionel Sambuc // 58f4a2713aSLionel Sambuc // RUN: %clang -target mipsel-unknown-freebsd -mabi=32 -### \ 59f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 60f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS32-EL-AS %s 61*0a6a1f1dSLionel Sambuc // MIPS32-EL-AS: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EL" 62f4a2713aSLionel Sambuc // 63f4a2713aSLionel Sambuc // RUN: %clang -target mips64el-unknown-freebsd -mabi=64 -### \ 64f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 65f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS64-EL-AS %s 66*0a6a1f1dSLionel Sambuc // MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EL" 67f4a2713aSLionel Sambuc // 68f4a2713aSLionel Sambuc // RUN: %clang -target mips-linux-freebsd -march=mips32r2 -### \ 69f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 70f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS-32R2 %s 71f4a2713aSLionel Sambuc // MIPS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB" 72f4a2713aSLionel Sambuc // 73f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -mips32 -### \ 74f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 75f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS-ALIAS-32 %s 76f4a2713aSLionel Sambuc // MIPS-ALIAS-32: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB" 77f4a2713aSLionel Sambuc // 78f4a2713aSLionel Sambuc // RUN: %clang -target mips-unknown-freebsd -mips32r2 -### \ 79f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 80f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS-ALIAS-32R2 %s 81f4a2713aSLionel Sambuc // MIPS-ALIAS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB" 82f4a2713aSLionel Sambuc // 83*0a6a1f1dSLionel Sambuc // RUN: %clang -target mips64-unknown-freebsd -mips64 -### \ 84f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 85f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS-ALIAS-64 %s 86f4a2713aSLionel Sambuc // MIPS-ALIAS-64: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB" 87f4a2713aSLionel Sambuc // 88*0a6a1f1dSLionel Sambuc // RUN: %clang -target mips64-unknown-freebsd -mips64r2 -### \ 89f4a2713aSLionel Sambuc // RUN: -no-integrated-as -c %s 2>&1 \ 90f4a2713aSLionel Sambuc // RUN: | FileCheck -check-prefix=MIPS-ALIAS-64R2 %s 91f4a2713aSLionel Sambuc // MIPS-ALIAS-64R2: as{{(.exe)?}}" "-march" "mips64r2" "-mabi" "64" "-EB" 92