1; RUN: llc < %s -march=mips64el -mcpu=mips4 -target-abi n64 -relocation-model=pic | FileCheck %s -check-prefix=CHECK-N64 2; RUN: llc < %s -march=mips64el -mcpu=mips4 -target-abi n32 -relocation-model=pic | FileCheck %s -check-prefix=CHECK-N32 3; RUN: llc < %s -march=mips64el -mcpu=mips64 -target-abi n64 -relocation-model=pic | FileCheck %s -check-prefix=CHECK-N64 4; RUN: llc < %s -march=mips64el -mcpu=mips64 -target-abi n32 -relocation-model=pic | FileCheck %s -check-prefix=CHECK-N32 5; RUN: llc < %s -march=mipsel -mcpu=mips64r6 -mattr=+micromips -target-abi n32 -relocation-model=pic | FileCheck %s -check-prefix=CHECK-N32 6; RUN: llc < %s -march=mipsel -mcpu=mips64r6 -mattr=+micromips -target-abi n64 -relocation-model=pic | FileCheck %s -check-prefix=CHECK-N64 7 8@f0 = common global float 0.000000e+00, align 4 9@d0 = common global double 0.000000e+00, align 8 10@f1 = common global float 0.000000e+00, align 4 11@d1 = common global double 0.000000e+00, align 8 12 13define float @funcfl1() nounwind readonly { 14entry: 15; CHECK-N64: funcfl1 16; CHECK-N64: ld $[[R0:[0-9]+]], %got_disp(f0) 17; CHECK-N64: lwc1 $f{{[0-9]+}}, 0($[[R0]]) 18; CHECK-N32: funcfl1 19; CHECK-N32: lw $[[R0:[0-9]+]], %got_disp(f0) 20; CHECK-N32: lwc1 $f{{[0-9]+}}, 0($[[R0]]) 21 %0 = load float, float* @f0, align 4 22 ret float %0 23} 24 25define double @funcfl2() nounwind readonly { 26entry: 27; CHECK-N64: funcfl2 28; CHECK-N64: ld $[[R0:[0-9]+]], %got_disp(d0) 29; CHECK-N64: ldc1 $f{{[0-9]+}}, 0($[[R0]]) 30; CHECK-N32: funcfl2 31; CHECK-N32: lw $[[R0:[0-9]+]], %got_disp(d0) 32; CHECK-N32: ldc1 $f{{[0-9]+}}, 0($[[R0]]) 33 %0 = load double, double* @d0, align 8 34 ret double %0 35} 36 37define void @funcfs1() nounwind { 38entry: 39; CHECK-N64: funcfs1 40; CHECK-N64: ld $[[R0:[0-9]+]], %got_disp(f0) 41; CHECK-N64: swc1 $f{{[0-9]+}}, 0($[[R0]]) 42; CHECK-N32: funcfs1 43; CHECK-N32: lw $[[R0:[0-9]+]], %got_disp(f0) 44; CHECK-N32: swc1 $f{{[0-9]+}}, 0($[[R0]]) 45 %0 = load float, float* @f1, align 4 46 store float %0, float* @f0, align 4 47 ret void 48} 49 50define void @funcfs2() nounwind { 51entry: 52; CHECK-N64: funcfs2 53; CHECK-N64: ld $[[R0:[0-9]+]], %got_disp(d0) 54; CHECK-N64: sdc1 $f{{[0-9]+}}, 0($[[R0]]) 55; CHECK-N32: funcfs2 56; CHECK-N32: lw $[[R0:[0-9]+]], %got_disp(d0) 57; CHECK-N32: sdc1 $f{{[0-9]+}}, 0($[[R0]]) 58 %0 = load double, double* @d1, align 8 59 store double %0, double* @d0, align 8 60 ret void 61} 62 63