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 3 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 6 7; Test the fp128 returns for N32/N64 and all byte orders as specified by 8; section 5 of MD00305 (MIPS ABIs Described). 9; 10; O32 is not tested because long double is the same as double on O32. 11; 12@fp128 = global fp128 zeroinitializer 13 14define fp128 @retldouble() nounwind { 15entry: 16 %0 = load volatile fp128, ptr @fp128 17 ret fp128 %0 18} 19 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]]) 24 25; N64-DAG: lui [[R2:\$[0-9]+]], %highest(fp128) 26; N64-DAG: ldc1 $f0, %lo(fp128)([[R2]]) 27; N64-DAG: ldc1 $f2, 8([[R2]]) 28