blob: 95b93b791c742473d461d0e601aee0bd94aa5644 [file] [log] [blame]
Simon Atanasyana80313a2012-08-28 11:17:20 +00001// REQUIRES: mips-registered-target
2//
Simon Atanasyan2390aa12012-04-06 19:15:24 +00003// Check passing options to the assembler for MIPS targets.
4//
5// RUN: %clang -target mips-linux-gnu -### \
6// RUN: -no-integrated-as -c %s 2>&1 \
7// RUN: | FileCheck -check-prefix=MIPS32-EB-AS %s
Simon Atanasyanf4382812012-07-05 11:30:19 +00008// MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
9// MIPS32-EB-AS-NOT: "-KPIC"
Simon Atanasyan217dc2d2012-05-29 19:07:33 +000010//
11// RUN: %clang -target mips-linux-gnu -### \
12// RUN: -no-integrated-as -fPIC -c %s 2>&1 \
13// RUN: | FileCheck -check-prefix=MIPS32-EB-PIC %s
Simon Atanasyanf4382812012-07-05 11:30:19 +000014// MIPS32-EB-PIC: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
15// MIPS32-EB-PIC: "-KPIC"
Simon Atanasyan2390aa12012-04-06 19:15:24 +000016//
17// RUN: %clang -target mipsel-linux-gnu -### \
18// RUN: -no-integrated-as -c %s 2>&1 \
19// RUN: | FileCheck -check-prefix=MIPS32-EL-AS %s
Simon Atanasyanf4382812012-07-05 11:30:19 +000020// MIPS32-EL-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EL"
Simon Atanasyan2390aa12012-04-06 19:15:24 +000021//
22// RUN: %clang -target mips64-linux-gnu -### \
23// RUN: -no-integrated-as -c %s 2>&1 \
24// RUN: | FileCheck -check-prefix=MIPS64-EB-AS %s
Simon Atanasyanf4382812012-07-05 11:30:19 +000025// MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB"
Simon Atanasyan2390aa12012-04-06 19:15:24 +000026//
27// RUN: %clang -target mips64el-linux-gnu -### \
28// RUN: -no-integrated-as -c %s 2>&1 \
29// RUN: | FileCheck -check-prefix=MIPS64-EL-AS %s
Simon Atanasyanf4382812012-07-05 11:30:19 +000030// MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EL"
Simon Atanasyan571d7bd2012-04-07 22:31:29 +000031//
32// RUN: %clang -target mips-linux-gnu -mabi=eabi -### \
33// RUN: -no-integrated-as -c %s 2>&1 \
34// RUN: | FileCheck -check-prefix=MIPS-EABI %s
Simon Atanasyanf4382812012-07-05 11:30:19 +000035// MIPS-EABI: as{{(.exe)?}}" "-march" "mips32" "-mabi" "eabi" "-EB"
Simon Atanasyan571d7bd2012-04-07 22:31:29 +000036//
37// RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \
38// RUN: -no-integrated-as -c %s 2>&1 \
39// RUN: | FileCheck -check-prefix=MIPS-N32 %s
Simon Atanasyanf4382812012-07-05 11:30:19 +000040// MIPS-N32: as{{(.exe)?}}" "-march" "mips64" "-mabi" "n32" "-EB"
Simon Atanasyan464a7f72012-09-10 08:32:41 +000041//
42// RUN: %clang -target mips-linux-gnu -march=mips32r2 -### \
43// RUN: -no-integrated-as -c %s 2>&1 \
44// RUN: | FileCheck -check-prefix=MIPS-32R2 %s
45// MIPS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB"