1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s 3# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s 4 5--- 6name: uaddo_s32_ss 7legalized: true 8 9body: | 10 bb.0: 11 liveins: $sgpr0, $sgpr1 12 ; CHECK-LABEL: name: uaddo_s32_ss 13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 14 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr1 15 ; CHECK: [[UADDO:%[0-9]+]]:sgpr(s32), [[UADDO1:%[0-9]+]]:sgpr(s32) = G_UADDO [[COPY]], [[COPY1]] 16 ; CHECK: [[TRUNC:%[0-9]+]]:sgpr(s1) = G_TRUNC [[UADDO1]](s32) 17 %0:_(s32) = COPY $sgpr0 18 %1:_(s32) = COPY $sgpr1 19 %2:_(s32), %3:_(s1) = G_UADDO %0, %1 20... 21 22--- 23name: uaddo_s32_sv 24legalized: true 25 26body: | 27 bb.0: 28 liveins: $sgpr0, $vgpr0 29 ; CHECK-LABEL: name: uaddo_s32_sv 30 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 31 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 32 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32) 33 ; CHECK: [[UADDO:%[0-9]+]]:vgpr(s32), [[UADDO1:%[0-9]+]]:vcc(s1) = G_UADDO [[COPY2]], [[COPY1]] 34 %0:_(s32) = COPY $sgpr0 35 %1:_(s32) = COPY $vgpr0 36 %2:_(s32), %3:_(s1) = G_UADDO %0, %1 37... 38 39--- 40name: uaddo_s32_vs 41legalized: true 42 43body: | 44 bb.0: 45 liveins: $sgpr0, $vgpr0 46 ; CHECK-LABEL: name: uaddo_s32_vs 47 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 48 ; CHECK: [[COPY1:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 49 ; CHECK: [[COPY2:%[0-9]+]]:vgpr(s32) = COPY [[COPY1]](s32) 50 ; CHECK: [[UADDO:%[0-9]+]]:vgpr(s32), [[UADDO1:%[0-9]+]]:vcc(s1) = G_UADDO [[COPY]], [[COPY2]] 51 %0:_(s32) = COPY $vgpr0 52 %1:_(s32) = COPY $sgpr0 53 %2:_(s32), %3:_(s1) = G_UADDO %0, %1 54... 55 56--- 57name: uaddo_s32_vv 58legalized: true 59 60body: | 61 bb.0: 62 liveins: $vgpr0, $vgpr1 63 ; CHECK-LABEL: name: uaddo_s32_vv 64 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 65 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY $vgpr1 66 ; CHECK: [[UADDO:%[0-9]+]]:vgpr(s32), [[UADDO1:%[0-9]+]]:vcc(s1) = G_UADDO [[COPY]], [[COPY1]] 67 %0:_(s32) = COPY $vgpr0 68 %1:_(s32) = COPY $vgpr1 69 %2:_(s32), %3:_(s1) = G_UADDO %0, %1 70... 71