1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv64 -mattr=+zbb -run-pass=regbankselect \
3 # RUN: -disable-gisel-legality-check -simplify-mir -verify-machineinstrs %s \
4 # RUN: -o - | FileCheck -check-prefix=RV64I %s
11 ; RV64I-LABEL: name: smax_i64
12 ; RV64I: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
13 ; RV64I-NEXT: [[COPY1:%[0-9]+]]:gprb(s64) = COPY $x11
14 ; RV64I-NEXT: [[SMAX:%[0-9]+]]:gprb(s64) = G_SMAX [[COPY]], [[COPY1]]
15 ; RV64I-NEXT: $x10 = COPY [[SMAX]](s64)
16 ; RV64I-NEXT: PseudoRET implicit $x10
19 %2:_(s64) = G_SMAX %0, %1
21 PseudoRET implicit $x10
29 ; RV64I-LABEL: name: smin_i64
30 ; RV64I: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
31 ; RV64I-NEXT: [[COPY1:%[0-9]+]]:gprb(s64) = COPY $x11
32 ; RV64I-NEXT: [[SMIN:%[0-9]+]]:gprb(s64) = G_SMIN [[COPY]], [[COPY1]]
33 ; RV64I-NEXT: $x10 = COPY [[SMIN]](s64)
34 ; RV64I-NEXT: PseudoRET implicit $x10
37 %2:_(s64) = G_SMIN %0, %1
39 PseudoRET implicit $x10
47 ; RV64I-LABEL: name: umax_i64
48 ; RV64I: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
49 ; RV64I-NEXT: [[COPY1:%[0-9]+]]:gprb(s64) = COPY $x11
50 ; RV64I-NEXT: [[UMAX:%[0-9]+]]:gprb(s64) = G_UMAX [[COPY]], [[COPY1]]
51 ; RV64I-NEXT: $x10 = COPY [[UMAX]](s64)
52 ; RV64I-NEXT: PseudoRET implicit $x10
55 %2:_(s64) = G_UMAX %0, %1
57 PseudoRET implicit $x10
65 ; RV64I-LABEL: name: umin_i64
66 ; RV64I: [[COPY:%[0-9]+]]:gprb(s64) = COPY $x10
67 ; RV64I-NEXT: [[COPY1:%[0-9]+]]:gprb(s64) = COPY $x11
68 ; RV64I-NEXT: [[UMIN:%[0-9]+]]:gprb(s64) = G_UMIN [[COPY]], [[COPY1]]
69 ; RV64I-NEXT: $x10 = COPY [[UMIN]](s64)
70 ; RV64I-NEXT: PseudoRET implicit $x10
73 %2:_(s64) = G_UMIN %0, %1
75 PseudoRET implicit $x10