[opaque pointer type] Add textual IR support for explicit type parameter to gep operator
[oota-llvm.git] / test / CodeGen / Mips / cconv / return-hard-fp128.ll
1 ; RUN: llc -march=mips64 -relocation-model=static -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=N32 %s
2 ; RUN: llc -march=mips64el -relocation-model=static -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=N32 %s
3
4 ; RUN: llc -march=mips64 -relocation-model=static -target-abi n64 < %s | FileCheck --check-prefix=ALL --check-prefix=N64 %s
5 ; RUN: llc -march=mips64el -relocation-model=static -target-abi n64 < %s | FileCheck --check-prefix=ALL --check-prefix=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
14 define fp128 @retldouble() nounwind {
15 entry:
16         %0 = load volatile fp128, fp128* @fp128
17         ret fp128 %0
18 }
19
20 ; ALL-LABEL: retldouble:
21 ; N32-DAG:           ld [[R2:\$[0-9]+]], %lo(fp128)([[R1:\$[0-9]+]])
22 ; N32-DAG:           addiu [[R3:\$[0-9]+]], [[R1]], %lo(fp128)
23 ; N32-DAG:           ld [[R4:\$[0-9]+]], 8([[R3]])
24 ; N32-DAG:           dmtc1 [[R2]], $f0
25 ; N32-DAG:           dmtc1 [[R4]], $f2
26
27 ; N64-DAG:           ld [[R2:\$[0-9]+]], %got_disp(fp128)([[R1:\$[0-9]+]])
28 ; N64-DAG:           ld [[R3:\$[0-9]+]], 0([[R2]])
29 ; N64-DAG:           ld [[R4:\$[0-9]+]], 8([[R2]])
30 ; N64-DAG:           dmtc1 [[R3]], $f0
31 ; N64-DAG:           dmtc1 [[R4]], $f2