1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
3 # RUN: llc -march=amdgcn -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
12 ; CHECK-LABEL: name: fsqrt_s
13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
14 ; CHECK: [[COPY1:%[0-9]+]]:vgpr(s32) = COPY [[COPY]](s32)
15 ; CHECK: [[FSQRT:%[0-9]+]]:vgpr(s32) = G_FSQRT [[COPY1]]
16 ; CHECK: $vgpr0 = COPY [[FSQRT]](s32)
17 %0:_(s32) = COPY $sgpr0
18 %1:_(s32) = G_FSQRT %0
29 ; CHECK-LABEL: name: fsqrt_v
30 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
31 ; CHECK: [[FSQRT:%[0-9]+]]:vgpr(s32) = G_FSQRT [[COPY]]
32 ; CHECK: $vgpr0 = COPY [[FSQRT]](s32)
33 %0:_(s32) = COPY $vgpr0
34 %1:_(s32) = G_FSQRT %0