blob: 8e4d6597784cf306229141d91ef5eac7f3418199 [file] [log] [blame]
Petar Jovanovice578e972016-04-11 15:24:23 +00001; RUN: llc -march=mips64 -mcpu=mips64 -target-abi=n32 -relocation-model=pic < \
Daniel Sanders0d972702016-06-24 12:23:17 +00002; RUN: %s | FileCheck %s -check-prefixes=ALL,N32,HARD-FLOAT
Petar Jovanovice578e972016-04-11 15:24:23 +00003; RUN: llc -march=mips64el -mcpu=mips64 -target-abi=n32 -relocation-model=pic < \
Daniel Sanders0d972702016-06-24 12:23:17 +00004; RUN: %s | FileCheck %s -check-prefixes=ALL,N32,HARD-FLOAT
Petar Jovanovice578e972016-04-11 15:24:23 +00005
6; RUN: llc -march=mips64 -mcpu=mips64 -target-abi=n64 -relocation-model=pic < \
Daniel Sanders0d972702016-06-24 12:23:17 +00007; RUN: %s | FileCheck %s -check-prefixes=ALL,N64,HARD-FLOAT
Petar Jovanovice578e972016-04-11 15:24:23 +00008; RUN: llc -march=mips64el -mcpu=mips64 -target-abi=n64 -relocation-model=pic < \
Daniel Sanders0d972702016-06-24 12:23:17 +00009; RUN: %s | FileCheck %s -check-prefixes=ALL,N64,HARD-FLOAT
Petar Jovanovice578e972016-04-11 15:24:23 +000010
11; RUN: llc -march=mips64 -mcpu=mips64 -mattr=+soft-float -target-abi=n32 \
Daniel Sanders0d972702016-06-24 12:23:17 +000012; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefixes=ALL,N32,SOFT-FLOAT
Petar Jovanovice578e972016-04-11 15:24:23 +000013; RUN: llc -march=mips64el -mcpu=mips64 -mattr=+soft-float -target-abi=n32 \
Daniel Sanders0d972702016-06-24 12:23:17 +000014; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefixes=ALL,N32,SOFT-FLOAT
Zlatko Buljanfba68932016-03-14 12:50:23 +000015
16; RUN: llc -march=mips64 -mcpu=mips64 -mattr=+soft-float -target-abi=n64 < %s \
Daniel Sanders0d972702016-06-24 12:23:17 +000017; RUN: | FileCheck %s -check-prefixes=ALL,N64,SOFT-FLOAT
Zlatko Buljanfba68932016-03-14 12:50:23 +000018; RUN: llc -march=mips64el -mcpu=mips64 -mattr=+soft-float -target-abi=n64 < \
Daniel Sanders0d972702016-06-24 12:23:17 +000019; RUN: %s | FileCheck %s -check-prefixes=ALL,N64,SOFT-FLOAT
Zlatko Buljanfba68932016-03-14 12:50:23 +000020
21@fp128 = global fp128 zeroinitializer
22
23define void @roundl_call(fp128 %value) {
24entry:
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
40declare fp128 @roundl(fp128) nounwind readnone