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