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