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:     -relocation-model=pic | FileCheck %s \
     18 ; RUN:     -check-prefixes=ALL,N64,SOFT-FLOAT
     19 ; RUN: llc -march=mips64el -mcpu=mips64 -mattr=+soft-float -target-abi=n64 < \
     20 ; RUN:     %s -relocation-model=pic | FileCheck %s \
     21 ; RUN:     -check-prefixes=ALL,N64,SOFT-FLOAT
     22 
     23 @fp128 = global fp128 zeroinitializer
     24 
     25 define void @roundl_call(fp128 %value) {
     26 entry:
     27 ; ALL-LABEL: roundl_call:
     28 ; N32:          lw      $25, %call16(roundl)($gp)
     29 ; N64:          ld      $25, %call16(roundl)($gp)
     30 
     31 ; SOFT-FLOAT:   sd      $4, 8(${{[0-9]+}})
     32 ; SOFT-FLOAT:   sd      $2, 0(${{[0-9]+}})
     33 
     34 ; HARD-FLOAT:   sdc1    $f2, 8(${{[0-9]+}})
     35 ; HARD-FLOAT:   sdc1    $f0, 0(${{[0-9]+}})
     36 
     37   %call = call fp128 @roundl(fp128 %value)
     38   store fp128 %call, fp128* @fp128
     39   ret void
     40 }
     41 
     42 declare fp128 @roundl(fp128) nounwind readnone
     43