Home | History | Annotate | Download | only in Mips
      1 ; Check the emission of directives at the start of an asm file.
      2 ; This test is XFAILED until we fix the emission of '.option pic0' on
      3 ; N32. At the moment we check if subtarget is Mips64 when we should be
      4 ; checking the Subtarget's ABI.
      5 
      6 ; ### O32 ABI ###
      7 ; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
      8 ; RUN: -relocation-model=static %s -o - | \
      9 ; RUN:   FileCheck -check-prefix=CHECK-STATIC-O32 -check-prefix=CHECK-STATIC-O32-NLEGACY %s
     10 
     11 ; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
     12 ; RUN: -relocation-model=pic %s -o - | \
     13 ; RUN:   FileCheck -check-prefix=CHECK-PIC-O32 -check-prefix=CHECK-PIC-O32-NLEGACY %s
     14 
     15 ; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
     16 ; RUN: -relocation-model=static -mattr=+nan2008 %s -o - | \
     17 ; RUN:   FileCheck -check-prefix=CHECK-STATIC-O32 -check-prefix=CHECK-STATIC-O32-N2008 %s
     18 
     19 ; RUN: llc -filetype=asm -mtriple mips-unknown-linux -mcpu=mips32 \
     20 ; RUN: -relocation-model=pic -mattr=+nan2008 %s -o - | \
     21 ; RUN:   FileCheck -check-prefix=CHECK-PIC-O32 -check-prefix=CHECK-PIC-O32-N2008 %s
     22 
     23 ; ### N32 ABI ###
     24 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     25 ; RUN: -relocation-model=static -mattr=-n64,+n32 %s -o - | \
     26 ; RUN:   FileCheck -check-prefix=CHECK-STATIC-N32 -check-prefix=CHECK-STATIC-N32-NLEGACY %s
     27 
     28 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     29 ; RUN: -relocation-model=pic -mattr=-n64,+n32 %s -o - | \
     30 ; RUN:   FileCheck -check-prefix=CHECK-PIC-N32 -check-prefix=CHECK-PIC-N32-NLEGACY %s
     31 
     32 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     33 ; RUN: -relocation-model=static -mattr=-n64,+n32,+nan2008 %s -o - | \
     34 ; RUN:   FileCheck -check-prefix=CHECK-STATIC-N32 -check-prefix=CHECK-STATIC-N32-N2008 %s
     35 
     36 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     37 ; RUN: -relocation-model=pic -mattr=-n64,+n32,+nan2008 %s -o - | \
     38 ; RUN:   FileCheck -check-prefix=CHECK-PIC-N32 -check-prefix=CHECK-PIC-N32-N2008 %s
     39 
     40 ; ### N64 ABI ###
     41 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     42 ; RUN: -relocation-model=static -mattr=+n64 %s -o - | \
     43 ; RUN:   FileCheck -check-prefix=CHECK-STATIC-N64 -check-prefix=CHECK-STATIC-N64-NLEGACY %s
     44 
     45 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     46 ; RUN: -relocation-model=pic -mattr=+n64 %s -o - | \
     47 ; RUN:   FileCheck -check-prefix=CHECK-PIC-N64 -check-prefix=CHECK-PIC-N64-NLEGACY %s
     48 
     49 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     50 ; RUN: -relocation-model=static -mattr=+n64,+nan2008 %s -o - | \
     51 ; RUN:   FileCheck -check-prefix=CHECK-STATIC-N64 -check-prefix=CHECK-STATIC-N64-N2008 %s
     52 
     53 ; RUN: llc -filetype=asm -mtriple mips64-unknown-linux -mcpu=mips64 \
     54 ; RUN: -relocation-model=pic -mattr=+n64,+nan2008 %s -o - | \
     55 ; RUN:   FileCheck -check-prefix=CHECK-PIC-N64 -check-prefix=CHECK-PIC-N64-N2008 %s
     56 
     57 ; CHECK-STATIC-O32: .abicalls
     58 ; CHECK-STATIC-O32: .option pic0
     59 ; CHECK-STATIC-O32: .section .mdebug.abi32
     60 ; CHECK-STATIC-O32-NLEGACY: .nan legacy
     61 ; CHECK-STATIC-O32-N2008: .nan 2008
     62 
     63 ; CHECK-PIC-O32: .abicalls
     64 ; CHECK-PIC-O32-NOT: .option pic0
     65 ; CHECK-PIC-O32: .section .mdebug.abi32
     66 ; CHECK-PIC-O32-NLEGACY: .nan legacy
     67 ; CHECK-PIC-O32-N2008: .nan 2008
     68 
     69 ; CHECK-STATIC-N32: .abicalls
     70 ; CHECK-STATIC-N32: .option pic0
     71 ; CHECK-STATIC-N32: .section .mdebug.abiN32
     72 ; CHECK-STATIC-N32-NLEGACY: .nan legacy
     73 ; CHECK-STATIC-N32-N2008: .nan 2008
     74 
     75 ; CHECK-PIC-N32: .abicalls
     76 ; CHECK-PIC-N32-NOT: .option pic0
     77 ; CHECK-PIC-N32: .section .mdebug.abiN32
     78 ; CHECK-PIC-N32-NLEGACY: .nan legacy
     79 ; CHECK-PIC-N32-N2008: .nan 2008
     80 
     81 ; CHECK-STATIC-N64: .abicalls
     82 ; CHECK-STATIC-N64-NOT: .option pic0
     83 ; CHECK-STATIC-N64: .section .mdebug.abi64
     84 ; CHECK-STATIC-N64-NLEGACY: .nan legacy
     85 ; CHECK-STATIC-N64-N2008: .nan 2008
     86 
     87 ; CHECK-PIC-N64: .abicalls
     88 ; CHECK-PIC-N64-NOT: .option pic0
     89 ; CHECK-PIC-N64: .section .mdebug.abi64
     90 ; CHECK-PIC-N64-NLEGACY: .nan legacy
     91 ; CHECK-PIC-N64-N2008: .nan 2008
     92