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 %s 4 5define fastcc void @allocateSpace(i1 %cond1, i1 %cond2, i32 %offset) nounwind { 6entry: 7 %0 = load i8*, i8** undef, align 8 8 br i1 undef, label %return, label %lor.lhs.false 9 10lor.lhs.false: ; preds = %entry 11 br i1 undef, label %if.end7, label %return 12 13if.end7: ; preds = %lor.lhs.false 14 br i1 undef, label %if.then15, label %if.end71 15 16if.then15: ; preds = %if.end7 17 br label %while.cond 18 19while.cond: ; preds = %while.body, %if.then15 20 %idxprom17 = sext i32 0 to i64 21 %arrayidx18 = getelementptr inbounds i8, i8* %0, i64 %idxprom17 22 br i1 %cond1, label %if.end71, label %while.body 23 24while.body: ; preds = %while.cond 25 br i1 %cond2, label %while.cond, label %if.then45 26 27if.then45: ; preds = %while.body 28 %idxprom48139 = zext i32 %offset to i64 29 %arrayidx49 = getelementptr inbounds i8, i8* %0, i64 %idxprom48139 30 %1 = bitcast i8* %arrayidx49 to i16* 31 %2 = bitcast i8* %arrayidx18 to i16* 32 %3 = load i16, i16* %1, align 1 33 store i16 %3, i16* %2, align 1 34 br label %return 35 36if.end71: ; preds = %while.cond, %if.end7 37 unreachable 38 39return: ; preds = %if.then45, %lor.lhs.false, %entry 40 ret void 41 42; CHECK: @allocateSpace 43; CHECK: lbzux 44} 45