1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn -run-pass=amdgpu-regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck %s
3 # RUN: llc -mtriple=amdgcn -run-pass=amdgpu-regbankselect -regbankselect-greedy -verify-machineinstrs -o - %s | FileCheck %s
12 ; CHECK-LABEL: name: fcanonicalize_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: [[FCANONICALIZE:%[0-9]+]]:vgpr(s32) = G_FCANONICALIZE [[COPY1]]
18 ; CHECK-NEXT: $vgpr0 = COPY [[FCANONICALIZE]](s32)
19 %0:_(s32) = COPY $sgpr0
20 %1:_(s32) = G_FCANONICALIZE %0
31 ; CHECK-LABEL: name: fcanonicalize_v
32 ; CHECK: liveins: $vgpr0_vgpr1
34 ; CHECK-NEXT: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
35 ; CHECK-NEXT: [[FCANONICALIZE:%[0-9]+]]:vgpr(s32) = G_FCANONICALIZE [[COPY]]
36 ; CHECK-NEXT: $vgpr0 = COPY [[FCANONICALIZE]](s32)
37 %0:_(s32) = COPY $vgpr0
38 %1:_(s32) = G_FCANONICALIZE %0