1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -mattr=+zbb -run-pass=instruction-select \
3 # RUN: -simplify-mir -verify-machineinstrs %s -o - \
4 # RUN: | FileCheck -check-prefix=RV64I %s
12 ; RV64I-LABEL: name: cttz_s32
13 ; RV64I: [[COPY:%[0-9]+]]:gpr = COPY $x10
14 ; RV64I-NEXT: [[CTZW:%[0-9]+]]:gpr = CTZW [[COPY]]
15 ; RV64I-NEXT: $x10 = COPY [[CTZW]]
16 ; RV64I-NEXT: PseudoRET implicit $x10
17 %0:gprb(s64) = COPY $x10
18 %1:gprb(s64) = G_CTZW %0
20 PseudoRET implicit $x10
29 ; RV64I-LABEL: name: cttz_s64
30 ; RV64I: [[CTZ:%[0-9]+]]:gpr = CTZ [[CTZ]]
31 ; RV64I-NEXT: $x10 = COPY [[CTZ]]
32 ; RV64I-NEXT: PseudoRET implicit $x10
33 %0:gprb(s64) = COPY $x10
34 %1:gprb(s64) = G_CTTZ %1
36 PseudoRET implicit $x10