1 ; RUN: llc < %s 2 ; PR4136 3 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] 7 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 14 15 if.then: ; preds = %entry 16 ret void 17 18 if.end: ; preds = %entry 19 switch i16 0, label %return [ 20 i16 256, label %sw.bb 21 i16 512, label %sw.bb18 22 ] 23 24 sw.bb: ; preds = %if.end 25 ret void 26 27 sw.bb18: ; preds = %if.end 28 ret void 29 30 return: ; preds = %if.end 31 ret void 32 } 33