blob: f9055362dcef43f9ba31a0225007936baa1f7a96 [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 Atanasyan073a7802012-04-07 22:31:29 +00006// CHECK-MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
Simon Atanasyan1f0646e2012-05-29 19:07:33 +00007// CHECK-MIPS32-EB-AS-NOT: "-KPIC"
8//
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
12// CHECK-MIPS32-EB-PIC: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
13// CHECK-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 Atanasyan073a7802012-04-07 22:31:29 +000018// CHECK-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 Atanasyan073a7802012-04-07 22:31:29 +000023// CHECK-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 Atanasyan073a7802012-04-07 22:31:29 +000028// CHECK-MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EL"
29//
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
33// CHECK-MIPS-EABI: as{{(.exe)?}}" "-march" "mips32" "-mabi" "eabi" "-EB"
34//
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
38// CHECK-MIPS-N32: as{{(.exe)?}}" "-march" "mips64" "-mabi" "n32" "-EB"