brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · aea3246 Raw
64 lines · plain
1; RUN: llc -verify-machineinstrs < %s | FileCheck %s2target datalayout = "E-m:e-i64:64-n32:64"3target triple = "powerpc64le-unknown-linux"4 5%t1 = type { ptr, ptr }6%t2 = type <{ ptr, i32, [4 x i8] }>7%t3 = type { ptr }8 9@_ZN4Foam10SLListBase13endConstIter_E = external global %t110 11define void @_ZN4FoamrsIbEERNS_7IstreamES2_RNS_4ListIT_EE() #0 {12entry:13  switch i32 undef, label %if.else82 [14    i32 9, label %if.then15    i32 6, label %invoke.cont1016    i32 1, label %invoke.cont6117  ]18 19if.then:                                          ; preds = %entry20  unreachable21 22invoke.cont10:                                    ; preds = %entry23  unreachable24 25invoke.cont61:                                    ; preds = %entry26  br i1 undef, label %if.end75, label %if.then6427 28if.then64:                                        ; preds = %invoke.cont6129  unreachable30 31if.end75:                                         ; preds = %invoke.cont6132  br i1 undef, label %if.then17.i, label %if.then.i18133 34if.then.i181:                                     ; preds = %if.end7535  unreachable36 37if.then17.i:                                      ; preds = %if.end7538  %tobool.i.i.i = icmp eq i32 undef, 039  %0 = load ptr, ptr undef, align 840  %agg.tmp.sroa.3.0.copyload33.in.i = select i1 %tobool.i.i.i, ptr getelementptr inbounds (%t1, ptr @_ZN4Foam10SLListBase13endConstIter_E, i64 0, i32 1), ptr %041  %agg.tmp.sroa.3.0.copyload33.i = load i64, ptr %agg.tmp.sroa.3.0.copyload33.in.i, align 842  %1 = inttoptr i64 %agg.tmp.sroa.3.0.copyload33.i to ptr43  %2 = load ptr, ptr getelementptr inbounds (%t1, ptr @_ZN4Foam10SLListBase13endConstIter_E, i64 0, i32 1), align 844  %cmp.i37.i = icmp eq ptr %1, %245  br i1 %cmp.i37.i, label %invoke.cont79, label %for.body.lr.ph.i46 47; CHECK-LABEL: @_ZN4FoamrsIbEERNS_7IstreamES2_RNS_4ListIT_EE48 49for.body.lr.ph.i:                                 ; preds = %if.then17.i50  br label %for.body.i51 52for.body.i:                                       ; preds = %for.body.i, %for.body.lr.ph.i53  br i1 undef, label %invoke.cont79, label %for.body.i54 55invoke.cont79:                                    ; preds = %for.body.i, %if.then17.i56  unreachable57 58if.else82:                                        ; preds = %entry59  ret void60}61 62attributes #0 = { "target-cpu"="a2q" }63 64