Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -march=arm | grep tst
      2 ; RUN: llc < %s -march=arm | grep teq
      3 
      4 define i32 @f(i32 %a) {
      5 entry:
      6 	%tmp2 = and i32 %a, 255		; <i32> [#uses=1]
      7 	icmp eq i32 %tmp2, 0		; <i1>:0 [#uses=1]
      8 	%retval = select i1 %0, i32 20, i32 10		; <i32> [#uses=1]
      9 	ret i32 %retval
     10 }
     11 
     12 define i32 @g(i32 %a) {
     13 entry:
     14         %tmp2 = xor i32 %a, 255
     15 	icmp eq i32 %tmp2, 0		; <i1>:0 [#uses=1]
     16 	%retval = select i1 %0, i32 20, i32 10		; <i32> [#uses=1]
     17 	ret i32 %retval
     18 }
     19