1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
12 ; CHECK-LABEL: name: fabs_s
13 ; CHECK: liveins: $sgpr0_sgpr1
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
16 ; CHECK-NEXT: [[FABS:%[0-9]+]]:sgpr(s32) = G_FABS [[COPY]]
17 ; CHECK-NEXT: $vgpr0 = COPY [[FABS]](s32)
18 %0:_(s32) = COPY $sgpr0
30 ; CHECK-LABEL: name: fabs_v
31 ; CHECK: liveins: $vgpr0_vgpr1
33 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
34 ; CHECK-NEXT: [[FABS:%[0-9]+]]:vgpr(s32) = G_FABS [[COPY]]
35 ; CHECK-NEXT: $vgpr0 = COPY [[FABS]](s32)
36 %0:_(s32) = COPY $vgpr0