1; RUN: llc < %s | FileCheck %s 2target datalayout = "E-m:e-i64:64-n32:64" 3target triple = "powerpc64-bgq-linux" 4 5%t1 = type { %t2*, %t3* } 6%t2 = type <{ %t3*, i32, [4 x i8] }> 7%t3 = type { %t3* } 8 9@_ZN4Foam10SLListBase13endConstIter_E = external global %t1 10 11define void @_ZN4FoamrsIbEERNS_7IstreamES2_RNS_4ListIT_EE() #0 { 12entry: 13 switch i32 undef, label %if.else82 [ 14 i32 9, label %if.then 15 i32 6, label %invoke.cont10 16 i32 1, label %invoke.cont61 17 ] 18 19if.then: ; preds = %entry 20 unreachable 21 22invoke.cont10: ; preds = %entry 23 unreachable 24 25invoke.cont61: ; preds = %entry 26 br i1 undef, label %if.end75, label %if.then64 27 28if.then64: ; preds = %invoke.cont61 29 unreachable 30 31if.end75: ; preds = %invoke.cont61 32 br i1 undef, label %if.then17.i, label %if.then.i181 33 34if.then.i181: ; preds = %if.end75 35 unreachable 36 37if.then17.i: ; preds = %if.end75 38 %tobool.i.i.i = icmp eq i32 undef, 0 39 %0 = load i64*, i64** undef, align 8 40 %agg.tmp.sroa.3.0.copyload33.in.i = select i1 %tobool.i.i.i, i64* bitcast (%t3** getelementptr inbounds (%t1, %t1* @_ZN4Foam10SLListBase13endConstIter_E, i64 0, i32 1) to i64*), i64* %0 41 %agg.tmp.sroa.3.0.copyload33.i = load i64, i64* %agg.tmp.sroa.3.0.copyload33.in.i, align 8 42 %1 = inttoptr i64 %agg.tmp.sroa.3.0.copyload33.i to %t3* 43 %2 = load %t3*, %t3** getelementptr inbounds (%t1, %t1* @_ZN4Foam10SLListBase13endConstIter_E, i64 0, i32 1), align 8 44 %cmp.i37.i = icmp eq %t3* %1, %2 45 br i1 %cmp.i37.i, label %invoke.cont79, label %for.body.lr.ph.i 46 47; CHECK-LABEL: @_ZN4FoamrsIbEERNS_7IstreamES2_RNS_4ListIT_EE 48 49for.body.lr.ph.i: ; preds = %if.then17.i 50 br label %for.body.i 51 52for.body.i: ; preds = %for.body.i, %for.body.lr.ph.i 53 br i1 undef, label %invoke.cont79, label %for.body.i 54 55invoke.cont79: ; preds = %for.body.i, %if.then17.i 56 unreachable 57 58if.else82: ; preds = %entry 59 ret void 60} 61 62attributes #0 = { "target-cpu"="a2q" } 63 64