Home | History | Annotate | Download | only in Mips
      1 ; Check msa warnings.
      2 ; RUN: llc -march=mips -mattr=+mips32r2 -mattr=+msa -mattr=+fp64 < %s 2>&1 | \
      3 ; RUN:   FileCheck %s -check-prefix=MSA_32
      4 ; RUN: llc -march=mips64 -mattr=+mips64r2 -mattr=+msa < %s 2>&1 | \
      5 ; RUN:   FileCheck %s  -check-prefix=MSA_64
      6 ; RUN: llc -march=mips -mattr=+mips32r5 -mattr=+msa -mattr=+fp64 < %s 2>&1 | \
      7 ; RUN:   FileCheck %s -check-prefix=MSA_32_NO_WARNING
      8 ; RUN: llc -march=mips64 -mattr=+mips64r5 -mattr=+msa < %s 2>&1 | \
      9 ; RUN:   FileCheck %s  -check-prefix=MSA_64_NO_WARNING
     10 
     11 ; Check dspr2 warnings.
     12 ; RUN: llc -march=mips -mattr=+mips32 -mattr=+dspr2 < %s 2>&1 | \
     13 ; RUN:   FileCheck %s -check-prefix=DSPR2_32
     14 ; RUN: llc -march=mips64 -mattr=+mips64 -mattr=+dspr2 < %s 2>&1 | \
     15 ; RUN:   FileCheck %s -check-prefix=DSPR2_64
     16 ; RUN: llc -march=mips64 -mattr=+mips64r3 -mattr=+dspr2 < %s  2>&1 | \
     17 ; RUN:   FileCheck %s -check-prefix=DSPR2_64_NO_WARNING
     18 ; RUN: llc -march=mips -mattr=+mips32r2 -mattr=+dspr2 < %s 2>&1 | \
     19 ; RUN:   FileCheck %s  -check-prefix=DSPR2_32_NO_WARNING
     20 
     21 ; Check dsp warnings.
     22 ; RUN: llc -march=mips -mattr=+mips32 -mattr=+dsp < %s 2>&1 | \
     23 ; RUN:   FileCheck %s -check-prefix=DSP_32
     24 ; RUN: llc -march=mips64 -mattr=+mips64 -mattr=+dsp < %s 2>&1 | \
     25 ; RUN:   FileCheck %s  -check-prefix=DSP_64
     26 ; RUN: llc -march=mips -mattr=+mips32r5 -mattr=+dsp < %s 2>&1 | \
     27 ; RUN:   FileCheck %s -check-prefix=DSP_32_NO_WARNING
     28 ; RUN: llc -march=mips64 -mattr=+mips64r2 -mattr=+dsp < %s 2>&1 | \
     29 ; RUN:   FileCheck %s -check-prefix=DSP_64_NO_WARNING
     30 
     31 ; Check virt warnings.
     32 ; RUN: llc -march=mips -mattr=+mips32r2 -mattr=+virt < %s 2>&1 | \
     33 ; RUN:   FileCheck %s -check-prefix=VIRT_32
     34 ; RUN: llc -march=mips64 -mattr=+mips64r2 -mattr=+virt < %s 2>&1 | \
     35 ; RUN:   FileCheck %s  -check-prefix=VIRT_64
     36 ; RUN: llc -march=mips -mattr=+mips32r5 -mattr=+virt < %s 2>&1 | \
     37 ; RUN:   FileCheck %s -check-prefix=VIRT_32_NO_WARNING
     38 ; RUN: llc -march=mips64 -mattr=+mips64r5 -mattr=+virt < %s 2>&1 | \
     39 ; RUN:   FileCheck %s  -check-prefix=VIRT_64_NO_WARNING
     40 
     41 ; Check crc warnings.
     42 ; RUN: llc -march=mips -mattr=+mips32r2 -mattr=+crc < %s 2>&1 | \
     43 ; RUN:   FileCheck %s -check-prefix=CRC_32
     44 ; RUN: llc -march=mips64 -mattr=+mips64r2 -mattr=+crc < %s 2>&1 | \
     45 ; RUN:   FileCheck %s  -check-prefix=CRC_64
     46 ; RUN: llc -march=mips -mattr=+mips32r6 -mattr=+crc < %s 2>&1 | \
     47 ; RUN:   FileCheck %s -check-prefix=CRC_32_NO_WARNING
     48 ; RUN: llc -march=mips64 -mattr=+mips64r6 -mattr=+crc < %s 2>&1 | \
     49 ; RUN:   FileCheck %s  -check-prefix=CRC_64_NO_WARNING
     50 
     51 ; Check ginv warnings.
     52 ; RUN: llc -march=mips -mattr=+mips32r2 -mattr=+ginv < %s 2>&1 | \
     53 ; RUN:   FileCheck %s -check-prefix=GINV_32
     54 ; RUN: llc -march=mips64 -mattr=+mips64r2 -mattr=+ginv < %s 2>&1 | \
     55 ; RUN:   FileCheck %s  -check-prefix=GINV_64
     56 ; RUN: llc -march=mips -mattr=+mips32r6 -mattr=+ginv < %s 2>&1 | \
     57 ; RUN:   FileCheck %s -check-prefix=GINV_32_NO_WARNING
     58 ; RUN: llc -march=mips64 -mattr=+mips64r6 -mattr=+ginv < %s 2>&1 | \
     59 ; RUN:   FileCheck %s  -check-prefix=GINV_64_NO_WARNING
     60 
     61 ; MSA_32: warning: the 'msa' ASE requires MIPS32 revision 5 or greater
     62 ; MSA_64: warning: the 'msa' ASE requires MIPS64 revision 5 or greater
     63 ; MSA_32_NO_WARNING-NOT: warning: the 'msa' ASE requires MIPS32 revision 5 or greater
     64 ; MSA_64_NO_WARNING-NOT: warning: the 'msa' ASE requires MIPS64 revision 5 or greater
     65 
     66 ; DSPR2_32: warning: the 'dspr2' ASE requires MIPS32 revision 2 or greater
     67 ; DSPR2_64: warning: the 'dspr2' ASE requires MIPS64 revision 2 or greater
     68 ; DSPR2_32_NO_WARNING-NOT: warning: the 'dspr2' ASE requires MIPS32 revision 2 or greater
     69 ; DSPR2_64_NO_WARNING-NOT: warning: the 'dspr2' ASE requires MIPS64 revision 2 or greater
     70 
     71 ; DSP_32: warning: the 'dsp' ASE requires MIPS32 revision 2 or greater
     72 ; DSP_64: warning: the 'dsp' ASE requires MIPS64 revision 2 or greater
     73 ; DSP_32_NO_WARNING-NOT: warning: the 'dsp' ASE requires MIPS32 revision 2 or greater
     74 ; DSP_64_NO_WARNING-NOT: warning: the 'dsp' ASE requires MIPS64 revision 2 or greater
     75 
     76 ; VIRT_32: warning: the 'virt' ASE requires MIPS32 revision 5 or greater
     77 ; VIRT_64: warning: the 'virt' ASE requires MIPS64 revision 5 or greater
     78 ; VIRT_32_NO_WARNING-NOT: warning: the 'virt' ASE requires MIPS32 revision 5 or greater
     79 ; VIRT_64_NO_WARNING-NOT: warning: the 'virt' ASE requires MIPS64 revision 5 or greater
     80 
     81 ; CRC_32: warning: the 'crc' ASE requires MIPS32 revision 6 or greater
     82 ; CRC_64: warning: the 'crc' ASE requires MIPS64 revision 6 or greater
     83 ; CRC_32_NO_WARNING-NOT: warning: the 'crc' ASE requires MIPS32 revision 6 or greater
     84 ; CRC_64_NO_WARNING-NOT: warning: the 'crc' ASE requires MIPS64 revision 6 or greater
     85 
     86 ; GINV_32: warning: the 'ginv' ASE requires MIPS32 revision 6 or greater
     87 ; GINV_64: warning: the 'ginv' ASE requires MIPS64 revision 6 or greater
     88 ; GINV_32_NO_WARNING-NOT: warning: the 'ginv' ASE requires MIPS32 revision 6 or greater
     89 ; GINV_64_NO_WARNING-NOT: warning: the 'ginv' ASE requires MIPS64 revision 6 or greater
     90