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 4 5--- 6name: fneg_s 7legalized: true 8 9body: | 10 bb.0: 11 liveins: $sgpr0_sgpr1 12 ; CHECK-LABEL: name: fneg_s 13 ; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0 14 ; CHECK: [[FNEG:%[0-9]+]]:sgpr(s32) = G_FNEG [[COPY]] 15 ; CHECK: $vgpr0 = COPY [[FNEG]](s32) 16 %0:_(s32) = COPY $sgpr0 17 %1:_(s32) = G_FNEG %0 18 $vgpr0 = COPY %1 19... 20 21--- 22name: fneg_v 23legalized: true 24 25body: | 26 bb.0: 27 liveins: $vgpr0_vgpr1 28 ; CHECK-LABEL: name: fneg_v 29 ; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0 30 ; CHECK: [[FNEG:%[0-9]+]]:vgpr(s32) = G_FNEG [[COPY]] 31 ; CHECK: $vgpr0 = COPY [[FNEG]](s32) 32 %0:_(s32) = COPY $vgpr0 33 %1:_(s32) = G_FNEG %0 34 $vgpr0 = COPY %1 35... 36