blob: 0ace4dd51c7462e4b81f6b5cacfb1b2639513e13 [file] [log] [blame]
Simon Atanasyan5f0a1c12012-04-06 19:15:24 +00001// 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 \
5// RUN: | FileCheck -check-prefix=MIPS32-EB-AS %s
Simon Atanasyan125aa1f2012-07-05 11:30:19 +00006// MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
7// MIPS32-EB-AS-NOT: "-KPIC"
Simon Atanasyan1f0646e2012-05-29 19:07:33 +00008//
9// RUN: %clang -target mips-linux-gnu -### \
10// RUN: -no-integrated-as -fPIC -c %s 2>&1 \
11// RUN: | FileCheck -check-prefix=MIPS32-EB-PIC %s
Simon Atanasyan125aa1f2012-07-05 11:30:19 +000012// MIPS32-EB-PIC: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
13// MIPS32-EB-PIC: "-KPIC"
Simon Atanasyan5f0a1c12012-04-06 19:15:24 +000014//
15// RUN: %clang -target mipsel-linux-gnu -### \
16// RUN: -no-integrated-as -c %s 2>&1 \
17// RUN: | FileCheck -check-prefix=MIPS32-EL-AS %s
Simon Atanasyan125aa1f2012-07-05 11:30:19 +000018// MIPS32-EL-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EL"
Simon Atanasyan5f0a1c12012-04-06 19:15:24 +000019//
20// RUN: %clang -target mips64-linux-gnu -### \
21// RUN: -no-integrated-as -c %s 2>&1 \
22// RUN: | FileCheck -check-prefix=MIPS64-EB-AS %s
Simon Atanasyan125aa1f2012-07-05 11:30:19 +000023// MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB"
Simon Atanasyan5f0a1c12012-04-06 19:15:24 +000024//
25// RUN: %clang -target mips64el-linux-gnu -### \
26// RUN: -no-integrated-as -c %s 2>&1 \
27// RUN: | FileCheck -check-prefix=MIPS64-EL-AS %s
Simon Atanasyan125aa1f2012-07-05 11:30:19 +000028// MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EL"
Simon Atanasyan073a7802012-04-07 22:31:29 +000029//
30// RUN: %clang -target mips-linux-gnu -mabi=eabi -### \
31// RUN: -no-integrated-as -c %s 2>&1 \
32// RUN: | FileCheck -check-prefix=MIPS-EABI %s
Simon Atanasyan125aa1f2012-07-05 11:30:19 +000033// MIPS-EABI: as{{(.exe)?}}" "-march" "mips32" "-mabi" "eabi" "-EB"
Simon Atanasyan073a7802012-04-07 22:31:29 +000034//
35// RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \
36// RUN: -no-integrated-as -c %s 2>&1 \
37// RUN: | FileCheck -check-prefix=MIPS-N32 %s
Simon Atanasyan125aa1f2012-07-05 11:30:19 +000038// MIPS-N32: as{{(.exe)?}}" "-march" "mips64" "-mabi" "n32" "-EB"