1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -run-pass=amdgpu-regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
12 ; CHECK-LABEL: name: fsqrt_s
13 ; CHECK: liveins: $sgpr0_sgpr1
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
16 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
17 ; CHECK-NEXT: [[FSQRT:%[0-9]+]]:vgpr(s32) = G_FSQRT [[COPY1]]
18 ; CHECK-NEXT: $vgpr0 = COPY [[FSQRT]](s32)
19 %0:_(s32) = COPY $sgpr0
20 %1:_(s32) = G_FSQRT %0
31 ; CHECK-LABEL: name: fsqrt_v
32 ; CHECK: liveins: $vgpr0_vgpr1
34 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
35 ; CHECK-NEXT: [[FSQRT:%[0-9]+]]:vgpr(s32) = G_FSQRT [[COPY]]
36 ; CHECK-NEXT: $vgpr0 = COPY [[FSQRT]](s32)
37 %0:_(s32) = COPY $vgpr0
38 %1:_(s32) = G_FSQRT %0