Home | History | Annotate | Download | only in Driver
      1 // Check passing options to the assembler for MIPS targets.
      2 //
      3 // RUN: %clang -target mips-unknown-freebsd -### \
      4 // RUN:   -no-integrated-as -c %s 2>&1 \
      5 // RUN:   | FileCheck -check-prefix=MIPS32-EB-AS %s
      6 // MIPS32-EB-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
      7 // MIPS32-EB-AS-NOT: "-KPIC"
      8 //
      9 // RUN: %clang -target mips-unknown-freebsd -### \
     10 // RUN:   -no-integrated-as -fPIC -c %s 2>&1 \
     11 // RUN:   | FileCheck -check-prefix=MIPS32-EB-PIC %s
     12 // MIPS32-EB-PIC: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
     13 // MIPS32-EB-PIC: "-KPIC"
     14 //
     15 // RUN: %clang -target mips-unknown-freebsd -### \
     16 // RUN:   -no-integrated-as -fpic -c %s 2>&1 \
     17 // RUN:   | FileCheck -check-prefix=MIPS32-EB-PIC-SMALL %s
     18 // MIPS32-EB-PIC-SMALL: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
     19 // MIPS32-EB-PIC-SMALL: "-KPIC"
     20 //
     21 // RUN: %clang -target mips-unknown-freebsd -### \
     22 // RUN:   -no-integrated-as -fPIE -c %s 2>&1 \
     23 // RUN:   | FileCheck -check-prefix=MIPS32-EB-PIE %s
     24 // MIPS32-EB-PIE: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
     25 // MIPS32-EB-PIE: "-KPIC"
     26 //
     27 // RUN: %clang -target mips-unknown-freebsd -### \
     28 // RUN:   -no-integrated-as -fpie -c %s 2>&1 \
     29 // RUN:   | FileCheck -check-prefix=MIPS32-EB-PIE-SMALL %s
     30 // MIPS32-EB-PIE-SMALL: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EB"
     31 // MIPS32-EB-PIE-SMALL: "-KPIC"
     32 //
     33 // RUN: %clang -target mipsel-unknown-freebsd -### \
     34 // RUN:   -no-integrated-as -c %s 2>&1 \
     35 // RUN:   | FileCheck -check-prefix=MIPS32-EL-AS %s
     36 // MIPS32-EL-AS: as{{(.exe)?}}" "-march" "mips32" "-mabi" "32" "-EL"
     37 //
     38 // RUN: %clang -target mips64-unknown-freebsd -### \
     39 // RUN:   -no-integrated-as -c %s 2>&1 \
     40 // RUN:   | FileCheck -check-prefix=MIPS64-EB-AS %s
     41 // MIPS64-EB-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EB"
     42 //
     43 // RUN: %clang -target mips64el-unknown-freebsd -### \
     44 // RUN:   -no-integrated-as -c %s 2>&1 \
     45 // RUN:   | FileCheck -check-prefix=MIPS64-EL-AS %s
     46 // MIPS64-EL-AS: as{{(.exe)?}}" "-march" "mips64" "-mabi" "64" "-EL"
     47 //
     48 // RUN: %clang -target mips-unknown-freebsd -mabi=eabi -### \
     49 // RUN:   -no-integrated-as -c %s 2>&1 \
     50 // RUN:   | FileCheck -check-prefix=MIPS-EABI %s
     51 // MIPS-EABI: as{{(.exe)?}}" "-march" "mips32" "-mabi" "eabi" "-EB"
     52 //
     53 // RUN: %clang -target mips64-unknown-freebsd -mabi=n32 -### \
     54 // RUN:   -no-integrated-as -c %s 2>&1 \
     55 // RUN:   | FileCheck -check-prefix=MIPS-N32 %s
     56 // MIPS-N32: as{{(.exe)?}}" "-march" "mips64" "-mabi" "n32" "-EB"
     57 //
     58 // RUN: %clang -target mips-linux-freebsd -march=mips32r2 -### \
     59 // RUN:   -no-integrated-as -c %s 2>&1 \
     60 // RUN:   | FileCheck -check-prefix=MIPS-32R2 %s
     61 // MIPS-32R2: as{{(.exe)?}}" "-march" "mips32r2" "-mabi" "32" "-EB"
     62