Home | History | Annotate | Download | only in Hexagon
      1 ; RUN: llc -march=hexagon < %s | FileCheck %s
      2 ; CHECK: tstbit
      3 
      4 ; Function Attrs: nounwind readnone
      5 define i32 @f0(i32 %a0, i32 %a1) #0 {
      6 b0:
      7   %v0 = shl i32 1, %a1
      8   %v1 = and i32 %v0, %a0
      9   %v2 = icmp ne i32 %v1, 0
     10   %v3 = zext i1 %v2 to i32
     11   ret i32 %v3
     12 }
     13 
     14 attributes #0 = { nounwind readnone }
     15