1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -mattr=+d -run-pass=regbankselect %s -o - \
11 ; CHECK-LABEL: name: merge_i64
12 ; CHECK: liveins: $x10
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprb(s32) = COPY $x10
15 ; CHECK-NEXT: [[MV:%[0-9]+]]:fprb(s64) = G_MERGE_VALUES [[COPY]](s32), [[COPY]](s32)
16 ; CHECK-NEXT: $f10_d = COPY [[MV]](s64)
17 ; CHECK-NEXT: PseudoRET implicit $f10_d
19 %1:_(s64) = G_MERGE_VALUES %0(s32), %0(s32)
21 PseudoRET implicit $f10_d
29 ; CHECK-LABEL: name: unmerge_i32
30 ; CHECK: liveins: $f10_d
32 ; CHECK-NEXT: [[COPY:%[0-9]+]]:fprb(s64) = COPY $f10_d
33 ; CHECK-NEXT: [[UV:%[0-9]+]]:gprb(s32), [[UV1:%[0-9]+]]:gprb(s32) = G_UNMERGE_VALUES [[COPY]](s64)
34 ; CHECK-NEXT: $x10 = COPY [[UV]](s32)
35 ; CHECK-NEXT: PseudoRET implicit $x10
36 %0:_(s64) = COPY $f10_d
37 %1:_(s32), %2:_(s32) = G_UNMERGE_VALUES %0(s64)
39 PseudoRET implicit $x10