1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
3---
4name:            ctlz_i32
5alignment:       4
6legalized:       true
7tracksRegLiveness: true
8body:             |
9  bb.1.entry:
10    liveins: $a0
11
12    ; MIPS32-LABEL: name: ctlz_i32
13    ; MIPS32: liveins: $a0
14    ; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
15    ; MIPS32: [[CTLZ:%[0-9]+]]:gprb(s32) = G_CTLZ [[COPY]](s32)
16    ; MIPS32: $v0 = COPY [[CTLZ]](s32)
17    ; MIPS32: RetRA implicit $v0
18    %0:_(s32) = COPY $a0
19    %1:_(s32) = G_CTLZ %0(s32)
20    $v0 = COPY %1(s32)
21    RetRA implicit $v0
22
23...
24