2012-08-28 19:17:20 +08:00
|
|
|
// REQUIRES: mips-registered-target
|
|
|
|
//
|
2012-04-07 03:15:24 +08:00
|
|
|
// Check passing options to the assembler for MIPS targets.
|
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32-EB-AS %s
|
2012-07-05 19:30:19 +08:00
|
|
|
// MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
|
|
|
|
// MIPS32-EB-AS-NOT: "-KPIC"
|
2012-05-30 03:07:33 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -fPIC -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32-EB-PIC %s
|
2012-07-05 19:30:19 +08:00
|
|
|
// MIPS32-EB-PIC: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
|
|
|
|
// MIPS32-EB-PIC: "-KPIC"
|
2012-04-07 03:15:24 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mipsel-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS32-EL-AS %s
|
2012-07-05 19:30:19 +08:00
|
|
|
// MIPS32-EL-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EL"
|
2012-04-07 03:15:24 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64-EB-AS %s
|
2012-07-05 19:30:19 +08:00
|
|
|
// MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB"
|
2012-04-07 03:15:24 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64el-linux-gnu -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS64-EL-AS %s
|
2012-07-05 19:30:19 +08:00
|
|
|
// MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EL"
|
2012-04-08 06:31:29 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips-linux-gnu -mabi=eabi -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-EABI %s
|
2012-07-05 19:30:19 +08:00
|
|
|
// MIPS-EABI: as{{(.exe)?}}" "-march" "mips32" "-mabi" "eabi" "-EB"
|
2012-04-08 06:31:29 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \
|
|
|
|
// RUN: -no-integrated-as -c %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=MIPS-N32 %s
|
2012-07-05 19:30:19 +08:00
|
|
|
// MIPS-N32: as{{(.exe)?}}" "-march" "mips64" "-mabi" "n32" "-EB"
|