brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 4b9d17c Raw
63 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s2; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s3@a = global float 3.000000e+00, align 44@b = global float 4.000000e+00, align 45@c = global double 3.000000e+00, align 86@d = global double 4.000000e+00, align 87 8; Function Attrs: nounwind9define float @emit_xsresp() {10entry:11  %0 = load float, ptr @a, align 412  %1 = load float, ptr @b, align 413  %div = fdiv arcp ninf float %0, %114  ret float %div15; CHECK-LABEL: @emit_xsresp16; CHECK: xsresp {{[0-9]+}}17}18 19; Function Attrs: nounwind20define float @emit_xsrsqrtesp(float %f) {21entry:22  %f.addr = alloca float, align 423  store float %f, ptr %f.addr, align 424  %0 = load float, ptr %f.addr, align 425  %1 = load float, ptr @b, align 426  %2 = call float @llvm.sqrt.f32(float %1)27  %div = fdiv arcp float %0, %228  ret float %div29; CHECK-LABEL: @emit_xsrsqrtesp30; CHECK: xsrsqrtesp {{[0-9]+}}31}32 33; Function Attrs: nounwind readnone34declare float @llvm.sqrt.f32(float)35 36; Function Attrs: nounwind37define double @emit_xsredp() {38entry:39  %0 = load double, ptr @c, align 840  %1 = load double, ptr @d, align 841  %div = fdiv arcp ninf double %0, %142  ret double %div43; CHECK-LABEL: @emit_xsredp44; CHECK: xsredp {{[0-9]+}}45}46 47; Function Attrs: nounwind48define double @emit_xsrsqrtedp(double %f) {49entry:50  %f.addr = alloca double, align 851  store double %f, ptr %f.addr, align 852  %0 = load double, ptr %f.addr, align 853  %1 = load double, ptr @d, align 854  %2 = call double @llvm.sqrt.f64(double %1)55  %div = fdiv arcp double %0, %256  ret double %div57; CHECK-LABEL: @emit_xsrsqrtedp58; CHECK: xsrsqrtedp {{[0-9]+}}59}60 61; Function Attrs: nounwind readnone62declare double @llvm.sqrt.f64(double) #163