brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 891a34f Raw
82 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=riscv32 -mattr=+zbb -run-pass=instruction-select \3# RUN:   -simplify-mir -verify-machineinstrs %s -o - \4# RUN:   | FileCheck -check-prefix=RV32I %s5 6---7name:            smax_i328legalized:       true9regBankSelected: true10body:             |11  bb.0.entry:12    ; RV32I-LABEL: name: smax_i3213    ; RV32I: [[COPY:%[0-9]+]]:gpr = COPY $x1014    ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x1115    ; RV32I-NEXT: [[MAX:%[0-9]+]]:gpr = MAX [[COPY]], [[COPY1]]16    ; RV32I-NEXT: $x10 = COPY [[MAX]]17    ; RV32I-NEXT: PseudoRET implicit $x1018    %0:gprb(s32) = COPY $x1019    %1:gprb(s32) = COPY $x1120    %2:gprb(s32) = G_SMAX %0, %121    $x10 = COPY %2(s32)22    PseudoRET implicit $x1023 24...25---26name:            smin_i3227legalized:       true28regBankSelected: true29body:             |30  bb.0.entry:31    ; RV32I-LABEL: name: smin_i3232    ; RV32I: [[COPY:%[0-9]+]]:gpr = COPY $x1033    ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x1134    ; RV32I-NEXT: [[MIN:%[0-9]+]]:gpr = MIN [[COPY]], [[COPY1]]35    ; RV32I-NEXT: $x10 = COPY [[MIN]]36    ; RV32I-NEXT: PseudoRET implicit $x1037    %0:gprb(s32) = COPY $x1038    %1:gprb(s32) = COPY $x1139    %2:gprb(s32) = G_SMIN %0, %140    $x10 = COPY %2(s32)41    PseudoRET implicit $x1042 43...44---45name:            umax_i3246legalized:       true47regBankSelected: true48body:             |49  bb.0.entry:50    ; RV32I-LABEL: name: umax_i3251    ; RV32I: [[COPY:%[0-9]+]]:gpr = COPY $x1052    ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x1153    ; RV32I-NEXT: [[MAXU:%[0-9]+]]:gpr = MAXU [[COPY]], [[COPY1]]54    ; RV32I-NEXT: $x10 = COPY [[MAXU]]55    ; RV32I-NEXT: PseudoRET implicit $x1056    %0:gprb(s32) = COPY $x1057    %1:gprb(s32) = COPY $x1158    %2:gprb(s32) = G_UMAX %0, %159    $x10 = COPY %2(s32)60    PseudoRET implicit $x1061 62...63---64name:            umin_i3265legalized:       true66regBankSelected: true67body:             |68  bb.0.entry:69    ; RV32I-LABEL: name: umin_i3270    ; RV32I: [[COPY:%[0-9]+]]:gpr = COPY $x1071    ; RV32I-NEXT: [[COPY1:%[0-9]+]]:gpr = COPY $x1172    ; RV32I-NEXT: [[MINU:%[0-9]+]]:gpr = MINU [[COPY]], [[COPY1]]73    ; RV32I-NEXT: $x10 = COPY [[MINU]]74    ; RV32I-NEXT: PseudoRET implicit $x1075    %0:gprb(s32) = COPY $x1076    %1:gprb(s32) = COPY $x1177    %2:gprb(s32) = G_UMIN %0, %178    $x10 = COPY %2(s32)79    PseudoRET implicit $x1080 81...82