1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
3 ; RUN: | FileCheck -check-prefix=RV32I %s
4 ; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \
5 ; RUN: | FileCheck -check-prefix=RV64I %s
7 define i24 @aext(i32 %0) {
10 ; RV32I-NEXT: srli a0, a0, 8
15 ; RV64I-NEXT: srliw a0, a0, 8
18 %3 = lshr exact i32 %2, 8
19 %4 = trunc i32 %3 to i24