blob: d6282d789d72b7dd6730f265207ee3497efaf27e [file] [log] [blame]
Simon Atanasyan2390aa12012-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
6// CHECK-MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-EB"
7//
8// RUN: %clang -target mipsel-linux-gnu -### \
9// RUN: -no-integrated-as -c %s 2>&1 \
10// RUN: | FileCheck -check-prefix=MIPS32-EL-AS %s
11// CHECK-MIPS32-EL-AS: as{{(.exe)?}}" "-march" "mips32" "-EL"
12//
13// RUN: %clang -target mips64-linux-gnu -### \
14// RUN: -no-integrated-as -c %s 2>&1 \
15// RUN: | FileCheck -check-prefix=MIPS64-EB-AS %s
16// CHECK-MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-EB"
17//
18// RUN: %clang -target mips64el-linux-gnu -### \
19// RUN: -no-integrated-as -c %s 2>&1 \
20// RUN: | FileCheck -check-prefix=MIPS64-EL-AS %s
21// CHECK-MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64" "-EL"