43 lines · plain
1; RUN: llc -mtriple=mips64 -mcpu=mips64 -target-abi=n32 -relocation-model=pic < \2; RUN: %s | FileCheck %s -check-prefixes=ALL,N32,HARD-FLOAT3; RUN: llc -mtriple=mips64el -mcpu=mips64 -target-abi=n32 -relocation-model=pic < \4; RUN: %s | FileCheck %s -check-prefixes=ALL,N32,HARD-FLOAT5 6; RUN: llc -mtriple=mips64 -mcpu=mips64 -target-abi=n64 -relocation-model=pic < \7; RUN: %s | FileCheck %s -check-prefixes=ALL,N64,HARD-FLOAT8; RUN: llc -mtriple=mips64el -mcpu=mips64 -target-abi=n64 -relocation-model=pic \9; RUN: < %s | FileCheck %s -check-prefixes=ALL,N64,HARD-FLOAT10 11; RUN: llc -mtriple=mips64 -mcpu=mips64 -mattr=+soft-float -target-abi=n32 \12; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefixes=ALL,N32,SOFT-FLOAT13; RUN: llc -mtriple=mips64el -mcpu=mips64 -mattr=+soft-float -target-abi=n32 \14; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefixes=ALL,N32,SOFT-FLOAT15 16; RUN: llc -mtriple=mips64 -mcpu=mips64 -mattr=+soft-float -target-abi=n64 < %s \17; RUN: -relocation-model=pic | FileCheck %s \18; RUN: -check-prefixes=ALL,N64,SOFT-FLOAT19; RUN: llc -mtriple=mips64el -mcpu=mips64 -mattr=+soft-float -target-abi=n64 < \20; RUN: %s -relocation-model=pic | FileCheck %s \21; RUN: -check-prefixes=ALL,N64,SOFT-FLOAT22 23@fp128 = global fp128 zeroinitializer24 25define void @roundl_call(fp128 %value) {26entry: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, ptr @fp12839 ret void40}41 42declare fp128 @roundl(fp128) nounwind readnone43