brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.5 KiB · b76e907 Raw
81 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; Without list-burr scheduling we may not see the difference in codegen here.3; Use a subtarget that has post-RA scheduling enabled because the anti-dependency4; breaker requires liveness information to be kept.5; RUN: llc < %s -mtriple=x86_64-- -mcpu=atom -enable-misched=false -post-RA-scheduler -pre-RA-sched=list-burr -break-anti-dependencies=none | FileCheck %s --check-prefix=none6; RUN: llc < %s -mtriple=x86_64-- -mcpu=atom -post-RA-scheduler -break-anti-dependencies=critical | FileCheck %s --check-prefix=critical7 8define void @goo(ptr %r, ptr %p, ptr %q) nounwind {9; none-LABEL: goo:10; none:       # %bb.0: # %entry11; none-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero12; none-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm013; none-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm014; none-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm015; none-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm016; none-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm017; none-NEXT:    cvttsd2si %xmm0, %eax18; none-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero19; none-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm020; none-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm021; none-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm022; none-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm023; none-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm024; none-NEXT:    cvttsd2si %xmm0, %ecx25; none-NEXT:    cmpl %eax, %ecx26; none-NEXT:    jge .LBB0_227; none-NEXT:  # %bb.1: # %bb28; none-NEXT:    movabsq $4621425052621576602, %rax # imm = 0x402299999999999A29; none-NEXT:    movq %rax, (%rdx)30; none-NEXT:  .LBB0_2: # %return31; none-NEXT:    retq32;33; critical-LABEL: goo:34; critical:       # %bb.0: # %entry35; critical-NEXT:    movsd {{.*#+}} xmm0 = mem[0],zero36; critical-NEXT:    movsd {{.*#+}} xmm1 = mem[0],zero37; critical-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm038; critical-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm139; critical-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm040; critical-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm141; critical-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm042; critical-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm143; critical-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm044; critical-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm145; critical-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm046; critical-NEXT:    addsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm147; critical-NEXT:    cvttsd2si %xmm0, %eax48; critical-NEXT:    cvttsd2si %xmm1, %ecx49; critical-NEXT:    cmpl %ecx, %eax50; critical-NEXT:    jge .LBB0_251; critical-NEXT:  # %bb.1: # %bb52; critical-NEXT:    movabsq $4621425052621576602, %rax # imm = 0x402299999999999A53; critical-NEXT:    movq %rax, (%rdx)54; critical-NEXT:  .LBB0_2: # %return55; critical-NEXT:    retq56entry:57	%0 = load double, ptr %p, align 858	%1 = fadd double %0, 1.100000e+0059	%2 = fmul double %1, 1.200000e+0060	%3 = fadd double %2, 1.300000e+0061	%4 = fmul double %3, 1.400000e+0062	%5 = fadd double %4, 1.500000e+0063	%6 = fptosi double %5 to i3264	%7 = load double, ptr %r, align 865	%8 = fadd double %7, 7.100000e+0066	%9 = fmul double %8, 7.200000e+0067	%10 = fadd double %9, 7.300000e+0068	%11 = fmul double %10, 7.400000e+0069	%12 = fadd double %11, 7.500000e+0070	%13 = fptosi double %12 to i3271	%14 = icmp slt i32 %6, %1372	br i1 %14, label %bb, label %return73 74bb:75	store double 9.300000e+00, ptr %q, align 876	ret void77 78return:79	ret void80}81