brintos

brintos / llvm-project-archived public Read only

0
0
Text · 814 B · 577cad8 Raw
25 lines · plain
1; RUN: llc -mtriple=hexagon -fp-contract=fast < %s | FileCheck %s2 3; Check that "Rx-=sfmpy(Rs,Rt)" is being generated for "fsub(fmul(..))"4 5; CHECK: r{{[0-9]+}} -= sfmpy6 7%struct.matrix_params = type { ptr }8 9; Function Attrs: norecurse nounwind10define void @loop2_1(ptr nocapture readonly %params, i32 %col1) #0 {11entry:12  %0 = load ptr, ptr %params, align 413  %1 = load ptr, ptr %0, align 414  %arrayidx1 = getelementptr inbounds float, ptr %1, i32 %col115  %2 = load float, ptr %arrayidx1, align 416  %arrayidx3 = getelementptr inbounds ptr, ptr %0, i32 %col117  %3 = load ptr, ptr %arrayidx3, align 418  %4 = load float, ptr %3, align 419  %mul = fmul float %2, %420  %sub = fsub float %2, %mul21  %arrayidx10 = getelementptr inbounds float, ptr %3, i32 %col122  store float %sub, ptr %arrayidx10, align 423  ret void24}25