brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 9a40c51 Raw
49 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 < %s | FileCheck %s4 5@multvec_i = external unnamed_addr global [100 x i32], align 46 7define fastcc void @subs_STMultiExceptIntern(i32 %input) nounwind {8entry:9  br i1 undef, label %while.body.lr.ph, label %return10 11while.body.lr.ph:                                 ; preds = %entry12  br label %while.body13 14while.body:                                       ; preds = %if.end12, %while.body.lr.ph15  %i.0240 = phi i32 [ -1, %while.body.lr.ph ], [ %i.1, %if.end12 ]16  br i1 undef, label %if.end12, label %if.then17 18if.then:                                          ; preds = %while.body19  %0 = add i32 %input, 120  br label %if.end1221 22if.end12:                                         ; preds = %if.then, %while.body23  %i.1 = phi i32 [ %i.0240, %while.body ], [ %0, %if.then ]24  br i1 undef, label %while.body, label %while.end25 26while.end:                                        ; preds = %if.end1227  br i1 undef, label %return, label %if.end1528 29if.end15:                                         ; preds = %while.end30  %idxprom.i.i230 = sext i32 %i.1 to i6431  %arrayidx18 = getelementptr inbounds [100 x i32], ptr @multvec_i, i64 0, i64 %idxprom.i.i23032  store i32 0, ptr %arrayidx18, align 433  br i1 undef, label %while.body21, label %while.end9034 35while.body21:                                     ; preds = %if.end1536  unreachable37 38while.end90:                                      ; preds = %if.end1539  store i32 0, ptr %arrayidx18, align 440  br label %return41 42return:                                           ; preds = %while.end90, %while.end, %entry43  ret void44 45; CHECK: @subs_STMultiExceptIntern46; CHECK: stwux47}48 49