77 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=12; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=23; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=34; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=45 6 7@x = global float 0x41F487E980000000, align 48@dx = global double 0x41CDCC8BC4800000, align 89@cx = global { float, float } { float 1.000000e+00, float 9.900000e+01 }, align 410@dcx = global { double, double } { double 0x42CE5E14A412B480, double 0x423AA4C580DB0000 }, align 811 12define float @foox() {13entry:14 %0 = load float, ptr @x, align 415 ret float %016; 1: .ent foox17; 1: lw $2, %lo(x)(${{[0-9]+}})18; 1: jal __mips16_ret_sf19}20 21define double @foodx() {22entry:23 %0 = load double, ptr @dx, align 824 ret double %025; 1: .ent foodx26; 1: lw $2, %lo(dx)(${{[0-9]+}})27; 1: jal __mips16_ret_df28; 2: .ent foodx29; 2: lw $3, 4(${{[0-9]+}})30; 2: jal __mips16_ret_df31 32}33 34define { float, float } @foocx() {35entry:36 %retval = alloca { float, float }, align 437 %cx.real = load float, ptr @cx38 %cx.imag = load float, ptr getelementptr inbounds ({ float, float }, ptr @cx, i32 0, i32 1)39 %real = getelementptr inbounds { float, float }, ptr %retval, i32 0, i32 040 %imag = getelementptr inbounds { float, float }, ptr %retval, i32 0, i32 141 store float %cx.real, ptr %real42 store float %cx.imag, ptr %imag43 %0 = load { float, float }, ptr %retval44 ret { float, float } %045; 1: .ent foocx46; 1: lw $2, %lo(cx)(${{[0-9]+}})47; 1: jal __mips16_ret_sc48; 2: .ent foocx49; 2: lw $3, 4(${{[0-9]+}})50; 2: jal __mips16_ret_sc51}52 53define { double, double } @foodcx() {54entry:55 %retval = alloca { double, double }, align 856 %dcx.real = load double, ptr @dcx57 %dcx.imag = load double, ptr getelementptr inbounds ({ double, double }, ptr @dcx, i32 0, i32 1)58 %real = getelementptr inbounds { double, double }, ptr %retval, i32 0, i32 059 %imag = getelementptr inbounds { double, double }, ptr %retval, i32 0, i32 160 store double %dcx.real, ptr %real61 store double %dcx.imag, ptr %imag62 %0 = load { double, double }, ptr %retval63 ret { double, double } %064; 1: .ent foodcx65; 1: lw ${{[0-9]}}, %lo(dcx)(${{[0-9]+}})66; 1: jal __mips16_ret_dc67; 2: .ent foodcx68; 2: lw ${{[0-9]}}, 4(${{[0-9]+}})69; 2: jal __mips16_ret_dc70; 3: .ent foodcx71; 3: lw $4, 8(${{[0-9]+}})72; 3: jal __mips16_ret_dc73; 4: .ent foodcx74; 4: lw $5, 12(${{[0-9]+}})75; 4: jal __mips16_ret_dc76}77