Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc  < %s -march=mipsel -mcpu=mips32r2 | FileCheck %s -check-prefix=MIPS32
      2 ; RUN: llc  < %s -march=mips64el -mcpu=mips64r2 | FileCheck %s -check-prefix=MIPS64
      3 
      4 declare <2 x i32> @llvm.ctlz.v2i32(<2 x i32>, i1)
      5 
      6 define <2 x i32> @ctlzv2i32(<2 x i32> %x) {
      7 entry:
      8 ; MIPS32: clz     $2, $4
      9 ; MIPS32: jr      $ra
     10 ; MIPS32: clz     $3, $5
     11 
     12 ; MIPS64: clz     $2, $4
     13 ; MIPS64: jr      $ra
     14 ; MIPS64: clz     $3, $5
     15 
     16   %ret = call <2 x i32> @llvm.ctlz.v2i32(<2 x i32> %x, i1 true)
     17   ret <2 x i32> %ret
     18 }
     19 
     20