brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0df66ff Raw
45 lines · plain
1; RUN: llc -verify-machineinstrs -mcpu=a2 < %s | FileCheck %s -check-prefix=INVFUNCDESC2; RUN: llc -verify-machineinstrs -mcpu=a2 -mattr=-invariant-function-descriptors < %s | FileCheck %s -check-prefix=NONINVFUNCDESC3target datalayout = "E-m:e-i64:64-n32:64"4target triple = "powerpc64-unknown-linux-gnu"5 6; Function Attrs: nounwind7define void @bar(ptr nocapture %x) #0 {8entry:9  br label %for.body10 11; INVFUNCDESC-LABEL: @bar12; INVFUNCDESC-DAG: ld [[REG1:[0-9]+]], 8(3)13; INVFUNCDESC-DAG: ld [[REG2:[0-9]+]], 16(3)14; INVFUNCDESC-DAG: ld [[REG3:[0-9]+]], 0(3)15 16; INVFUNCDESC: %for.body17; INVFUNCDESC-DAG: mtctr [[REG3]]18; INVFUNCDESC-DAG: mr 11, [[REG2]]19; INVFUNCDESC-DAG: mr 2, [[REG1]]20; INVFUNCDESC: bctrl21; INVFUNCDESC-NEXT: ld 2, 40(1)22 23; NONINVFUNCDESC-LABEL: @bar24; NONINVFUNCDESC: %for.body25; NONINVFUNCDESC-DAG: ld 3, 0(30)26; NONINVFUNCDESC-DAG: ld 11, 16(30)27; NONINVFUNCDESC-DAG: ld 2, 8(30)28; NONINVFUNCDESC: mtctr 329; NONINVFUNCDESC: bctrl30; NONINVFUNCDESC-NEXT: ld 2, 40(1)31 32for.body:                                         ; preds = %for.body, %entry33  %i.02 = phi i32 [ 0, %entry ], [ %inc, %for.body ]34  tail call void %x() #035  %inc = add nuw nsw i32 %i.02, 136  %exitcond = icmp eq i32 %inc, 160000000037  br i1 %exitcond, label %for.end, label %for.body38 39for.end:                                          ; preds = %for.body40  ret void41}42 43attributes #0 = { nounwind }44 45