3 ;; cast -> setle 0, %cast -> br %cond
4 ;; This sequence should cause the cast value to be forwarded twice,
5 ;; i.e., cast is forwarded to the setle and teh setle is forwarded
7 ;; register argument of the "branch-on-register" instruction, i.e.,
9 ;; This produces the bogus output instruction:
10 ;; brlez <NULL VALUE>, .L_SumArray_bb3.
11 ;; This came from %bb1 of sumarrray.ll generated from sumarray.c.
14 ;;;; ******************************************************
16 ;;;; ******************************************************
18 int "SumArray"(int %Num)
23 %Num = alloca int ; <int *> [#uses=2]
24 store int %Num, int * %Num
25 %reg108 = load int * %Num ; <int> [#uses=2]
26 %cast1006 = cast int %reg108 to uint ; <uint> [#uses=1]
27 %cond1001 = setle uint %cast1006, 0 ; <bool> [#uses=1]
28 br bool %cond1001, label %bb6, label %Top