1 ; RUN: llc -mtriple=mips64 -relocation-model=static -target-abi n32 < %s | FileCheck --check-prefixes=ALL,N32 %s
2 ; RUN: llc -mtriple=mips64el -relocation-model=static -target-abi n32 < %s | FileCheck --check-prefixes=ALL,N32 %s
4 ; RUN: llc -mtriple=mips64 -relocation-model=static -target-abi n64 < %s | FileCheck --check-prefixes=ALL,N64 %s
5 ; RUN: llc -mtriple=mips64el -relocation-model=static -target-abi n64 < %s | FileCheck --check-prefixes=ALL,N64 %s
7 ; Test the fp128 returns for N32/N64 and all byte orders as specified by
8 ; section 5 of MD00305 (MIPS ABIs Described).
10 ; O32 is not tested because long double is the same as double on O32.
12 @fp128 = global fp128 zeroinitializer
14 define fp128 @retldouble() nounwind {
16 %0 = load volatile fp128, ptr @fp128
20 ; ALL-LABEL: retldouble:
21 ; N32-DAG: ldc1 $f0, %lo(fp128)([[R1:\$[0-9]+]])
22 ; N32-DAG: addiu [[R3:\$[0-9]+]], [[R1]], %lo(fp128)
23 ; N32-DAG: ldc1 $f2, 8([[R3]])
25 ; N64-DAG: lui [[R2:\$[0-9]+]], %highest(fp128)
26 ; N64-DAG: ldc1 $f0, %lo(fp128)([[R2]])
27 ; N64-DAG: ldc1 $f2, 8([[R2]])