1# RUN: llc -run-pass si-optimize-exec-masking-pre-ra -march=amdgcn -verify-machineinstrs -o - %s | FileCheck --check-prefixes=GCN %s 2--- 3# GCN-LABEL: name: opt_exec_copy_fold 4# GCN: %2:vreg_64 = COPY $exec 5name: opt_exec_copy_fold 6tracksRegLiveness: true 7liveins: 8 - { reg: '$sgpr0_sgpr1' } 9body: | 10 bb.0: 11 liveins: $sgpr0_sgpr1 12 13 %0:vgpr_32 = V_CNDMASK_B32_e64 0, 0, 0, 1, $sgpr0_sgpr1, implicit $exec 14 %1:sreg_64 = V_CMP_NE_U32_e64 0, %0, implicit $exec 15 %2:vreg_64 = COPY $exec 16 %3:sreg_64 = V_CMP_EQ_U64_e64 %1, %2, implicit $exec 17 $scc = COPY %3 18 S_CBRANCH_SCC0 %bb.1, implicit $scc 19 20 bb.1: 21... 22 23 24