• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s
2; PR4136
3
4target datalayout = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8"
5target triple = "msp430-unknown-linux-gnu"
6@uip_len = external global i16		; <i16*> [#uses=2]
7
8define void @uip_arp_arpin() nounwind {
9entry:
10	%tmp = load volatile i16, i16* @uip_len		; <i16> [#uses=1]
11	%cmp = icmp ult i16 %tmp, 42		; <i1> [#uses=1]
12	store volatile i16 0, i16* @uip_len
13	br i1 %cmp, label %if.then, label %if.end
14
15if.then:		; preds = %entry
16	ret void
17
18if.end:		; preds = %entry
19	switch i16 0, label %return [
20		i16 256, label %sw.bb
21		i16 512, label %sw.bb18
22	]
23
24sw.bb:		; preds = %if.end
25	ret void
26
27sw.bb18:		; preds = %if.end
28	ret void
29
30return:		; preds = %if.end
31	ret void
32}
33