1 target 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"
2 target triple = "powerpc64-unknown-linux-gnu"
3 ; RUN: llc -verify-machineinstrs -disable-ppc-unaligned < %s | FileCheck %s
5 define fastcc void @allocateSpace(i1 %cond1, i1 %cond2, i32 %offset) nounwind {
7 %0 = load i8*, i8** undef, align 8
8 br i1 undef, label %return, label %lor.lhs.false
10 lor.lhs.false: ; preds = %entry
11 br i1 undef, label %if.end7, label %return
13 if.end7: ; preds = %lor.lhs.false
14 br i1 undef, label %if.then15, label %if.end71
16 if.then15: ; preds = %if.end7
19 while.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
24 while.body: ; preds = %while.cond
25 br i1 %cond2, label %while.cond, label %if.then45
27 if.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
36 if.end71: ; preds = %while.cond, %if.end7
39 return: ; preds = %if.then45, %lor.lhs.false, %entry
42 ; CHECK: @allocateSpace