revert a hunk of r82018 that wasn't supposed to go in yet.
[llvm/avr.git] / test / CodeGen / MSP430 / 2009-05-10-CyclicDAG.ll
blobf339373ffc75ae601d9978b918cba990f0f9a595
1 ; RUN: llc < %s
2 ; PR4136
4 target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
5 target triple = "msp430-unknown-linux-gnu"
6 @uip_len = external global i16          ; <i16*> [#uses=2]
8 define void @uip_arp_arpin() nounwind {
9 entry:
10         %tmp = volatile load i16* @uip_len              ; <i16> [#uses=1]
11         %cmp = icmp ult i16 %tmp, 42            ; <i1> [#uses=1]
12         volatile store i16 0, i16* @uip_len
13         br i1 %cmp, label %if.then, label %if.end
15 if.then:                ; preds = %entry
16         ret void
18 if.end:         ; preds = %entry
19         switch i16 0, label %return [
20                 i16 256, label %sw.bb
21                 i16 512, label %sw.bb18
22         ]
24 sw.bb:          ; preds = %if.end
25         ret void
27 sw.bb18:                ; preds = %if.end
28         ret void
30 return:         ; preds = %if.end
31         ret void