brintos

brintos / llvm-project-archived public Read only

0
0
Text · 897 B · 542a585 Raw
32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel -verify-machineinstrs %s -o -| FileCheck %s -check-prefixes=MIPS323 4define i32 @ctlz_i32(i32 %a) {5; MIPS32-LABEL: ctlz_i32:6; MIPS32:       # %bb.0: # %entry7; MIPS32-NEXT:    clz $2, $48; MIPS32-NEXT:    jr $ra9; MIPS32-NEXT:    nop10entry:11  %0 = call i32 @llvm.ctlz.i32(i32 %a, i1 false)12  ret i32 %013}14declare i32 @llvm.ctlz.i32(i32, i1 immarg)15 16 17define i64 @ctlz_i64(i64 %a) {18; MIPS32-LABEL: ctlz_i64:19; MIPS32:       # %bb.0: # %entry20; MIPS32-NEXT:    ori $3, $zero, 021; MIPS32-NEXT:    clz $1, $422; MIPS32-NEXT:    addiu $1, $1, 3223; MIPS32-NEXT:    clz $2, $524; MIPS32-NEXT:    movz $2, $1, $525; MIPS32-NEXT:    jr $ra26; MIPS32-NEXT:    nop27entry:28  %0 = call i64 @llvm.ctlz.i64(i64 %a, i1 false)29  ret i64 %030}31declare i64 @llvm.ctlz.i64(i64, i1 immarg)32