brintos

brintos / llvm-project-archived public Read only

0
0
Text · 978 B · d15a5c1 Raw
31 lines · plain
1; RUN: llc < %s2; PR47693target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"4target triple = "msp430-generic-generic"5 6define i16 @foo() nounwind readnone {7entry:8  %result = alloca i16, align 1                   ; <i16*> [#uses=2]9  store volatile i16 0, ptr %result10  %tmp = load volatile i16, ptr %result               ; <i16> [#uses=1]11  ret i16 %tmp12}13 14define i16 @main() nounwind {15entry:16  br label %while.cond17 18while.cond:                                       ; preds = %while.cond, %entry19  %call = call i16 @bar() nounwind                ; <i16> [#uses=1]20  %tobool = icmp eq i16 %call, 0                  ; <i1> [#uses=1]21  br i1 %tobool, label %while.end, label %while.cond22 23while.end:                                        ; preds = %while.cond24  %result.i = alloca i16, align 1                 ; <i16*> [#uses=2]25  store volatile i16 0, ptr %result.i26  %tmp.i = load volatile i16, ptr %result.i           ; <i16> [#uses=0]27  ret i16 028}29 30declare i16 @bar()31