1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=regbankselect \
3 # RUN: -disable-gisel-legality-check -simplify-mir -verify-machineinstrs %s \
4 # RUN: -o - | FileCheck -check-prefix=RV32I %s
9 tracksRegLiveness: true
14 ; RV32I-LABEL: name: store_i8
15 ; RV32I: liveins: $x10, $x11
17 ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
18 ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gprb(p0) = COPY $x11
19 ; RV32I-NEXT: G_STORE [[COPY]](s32), [[COPY1]](p0) :: (store (s8))
20 ; RV32I-NEXT: PseudoRET
23 G_STORE %2(s32), %1(p0) :: (store (s8))
30 tracksRegLiveness: true
35 ; RV32I-LABEL: name: store_i16
36 ; RV32I: liveins: $x10, $x11
38 ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
39 ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gprb(p0) = COPY $x11
40 ; RV32I-NEXT: G_STORE [[COPY]](s32), [[COPY1]](p0) :: (store (s16))
41 ; RV32I-NEXT: PseudoRET
44 G_STORE %2(s32), %1(p0) :: (store (s16))
51 tracksRegLiveness: true
56 ; RV32I-LABEL: name: store_i32
57 ; RV32I: liveins: $x10, $x11
59 ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
60 ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gprb(p0) = COPY $x11
61 ; RV32I-NEXT: G_STORE [[COPY]](s32), [[COPY1]](p0) :: (store (s32))
62 ; RV32I-NEXT: PseudoRET
65 G_STORE %0(s32), %1(p0) :: (store (s32))
72 tracksRegLiveness: true
77 ; RV32I-LABEL: name: store_ptr
78 ; RV32I: liveins: $x10, $x11
80 ; RV32I-NEXT: [[COPY:%[0-9]+]]:gprb(p0) = COPY $x10
81 ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gprb(p0) = COPY $x11
82 ; RV32I-NEXT: G_STORE [[COPY]](p0), [[COPY1]](p0) :: (store (p0), align 8)
83 ; RV32I-NEXT: PseudoRET
86 G_STORE %0(p0), %1(p0) :: (store (p0), align 8)