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
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
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
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
23 @fp128 = global fp128 zeroinitializer
25 define void @roundl_call(fp128 %value) {
27 ; ALL-LABEL: roundl_call:
28 ; N32: lw $25, %call16(roundl)($gp)
29 ; N64: ld $25, %call16(roundl)($gp)
31 ; SOFT-FLOAT: sd $4, 8(${{[0-9]+}})
32 ; SOFT-FLOAT: sd $2, 0(${{[0-9]+}})
34 ; HARD-FLOAT: sdc1 $f2, 8(${{[0-9]+}})
35 ; HARD-FLOAT: sdc1 $f0, 0(${{[0-9]+}})
37 %call = call fp128 @roundl(fp128 %value)
38 store fp128 %call, ptr @fp128
42 declare fp128 @roundl(fp128) nounwind readnone