Home | History | Annotate | Download | only in cconv
      1 ; RUN: llc -march=mips64 -mcpu=mips64 -target-abi=n32 -relocation-model=pic < \
      2 ; RUN:     %s | FileCheck %s -check-prefixes=ALL,N32,HARD-FLOAT
      3 ; RUN: llc -march=mips64el -mcpu=mips64 -target-abi=n32 -relocation-model=pic < \
      4 ; RUN:     %s | FileCheck %s -check-prefixes=ALL,N32,HARD-FLOAT
      5 
      6 ; RUN: llc -march=mips64 -mcpu=mips64 -target-abi=n64 -relocation-model=pic < \
      7 ; RUN:     %s | FileCheck %s -check-prefixes=ALL,N64,HARD-FLOAT
      8 ; RUN: llc -march=mips64el -mcpu=mips64 -target-abi=n64 -relocation-model=pic < \
      9 ; RUN:     %s | FileCheck %s -check-prefixes=ALL,N64,HARD-FLOAT
     10 
     11 ; RUN: llc -march=mips64 -mcpu=mips64 -mattr=+soft-float -target-abi=n32 \
     12 ; RUN:     -relocation-model=pic < %s | FileCheck %s -check-prefixes=ALL,N32,SOFT-FLOAT
     13 ; RUN: llc -march=mips64el -mcpu=mips64 -mattr=+soft-float -target-abi=n32 \
     14 ; RUN:     -relocation-model=pic < %s | FileCheck %s -check-prefixes=ALL,N32,SOFT-FLOAT
     15 
     16 ; RUN: llc -march=mips64 -mcpu=mips64 -mattr=+soft-float -target-abi=n64 < %s \
     17 ; RUN: | FileCheck %s -check-prefixes=ALL,N64,SOFT-FLOAT
     18 ; RUN: llc -march=mips64el -mcpu=mips64 -mattr=+soft-float -target-abi=n64 < \
     19 ; RUN:     %s | FileCheck %s -check-prefixes=ALL,N64,SOFT-FLOAT
     20 
     21 @fp128 = global fp128 zeroinitializer
     22 
     23 define void @roundl_call(fp128 %value) {
     24 entry:
     25 ; ALL-LABEL: roundl_call:
     26 ; N32:          lw      $25, %call16(roundl)($gp)
     27 ; N64:          ld      $25, %call16(roundl)($gp)
     28 
     29 ; SOFT-FLOAT:   sd      $4, 8(${{[0-9]+}})
     30 ; SOFT-FLOAT:   sd      $2, 0(${{[0-9]+}})
     31 
     32 ; HARD-FLOAT:   sdc1    $f2, 8(${{[0-9]+}})
     33 ; HARD-FLOAT:   sdc1    $f0, 0(${{[0-9]+}})
     34 
     35   %call = call fp128 @roundl(fp128 %value)
     36   store fp128 %call, fp128* @fp128
     37   ret void
     38 }
     39 
     40 declare fp128 @roundl(fp128) nounwind readnone
     41