43 lines · plain
1target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"2target triple = "powerpc64-unknown-linux-gnu"3; RUN: llc -verify-machineinstrs -disable-ppc-unaligned < %s | FileCheck %s4 5define fastcc void @allocateSpace(i1 %cond1, i1 %cond2, i32 %offset) nounwind {6entry:7 %0 = load ptr, ptr undef, align 88 br i1 undef, label %return, label %lor.lhs.false9 10lor.lhs.false: ; preds = %entry11 br i1 undef, label %if.end7, label %return12 13if.end7: ; preds = %lor.lhs.false14 br i1 undef, label %if.then15, label %if.end7115 16if.then15: ; preds = %if.end717 br label %while.cond18 19while.cond: ; preds = %while.body, %if.then1520 %idxprom17 = sext i32 0 to i6421 %arrayidx18 = getelementptr inbounds i8, ptr %0, i64 %idxprom1722 br i1 %cond1, label %if.end71, label %while.body23 24while.body: ; preds = %while.cond25 br i1 %cond2, label %while.cond, label %if.then4526 27if.then45: ; preds = %while.body28 %idxprom48139 = zext i32 %offset to i6429 %arrayidx49 = getelementptr inbounds i8, ptr %0, i64 %idxprom4813930 %1 = load i16, ptr %arrayidx49, align 131 store i16 %1, ptr %arrayidx18, align 132 br label %return33 34if.end71: ; preds = %while.cond, %if.end735 unreachable36 37return: ; preds = %if.then45, %lor.lhs.false, %entry38 ret void39 40; CHECK: @allocateSpace41; CHECK: lbzux42}43