Home | History | Annotate | Download | only in Driver
      1 // 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" "-mabi" "32" "-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" "-mabi" "32" "-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" "-mabi" "64" "-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" "-mabi" "64" "-EL"
     22 //
     23 // RUN: %clang -target mips-linux-gnu -mabi=eabi -### \
     24 // RUN:   -no-integrated-as -c %s 2>&1 \
     25 // RUN:   | FileCheck -check-prefix=MIPS-EABI %s
     26 // CHECK-MIPS-EABI: as{{(.exe)?}}" "-march" "mips32" "-mabi" "eabi" "-EB"
     27 //
     28 // RUN: %clang -target mips64-linux-gnu -mabi=n32 -### \
     29 // RUN:   -no-integrated-as -c %s 2>&1 \
     30 // RUN:   | FileCheck -check-prefix=MIPS-N32 %s
     31 // CHECK-MIPS-N32: as{{(.exe)?}}" "-march" "mips64" "-mabi" "n32" "-EB"
     32