1# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass si-wqm -o - %s | FileCheck %s 2 3--- 4# Check for awareness that s_or_saveexec_b64 clobbers SCC 5# 6#CHECK: S_OR_SAVEEXEC_B64 7#CHECK: S_CMP_LT_I32 8#CHECK: S_CSELECT_B32 9name: test_wwm_scc 10alignment: 0 11exposesReturnsTwice: false 12legalized: false 13regBankSelected: false 14selected: false 15tracksRegLiveness: true 16registers: 17 - { id: 0, class: sgpr_32, preferred-register: '' } 18 - { id: 1, class: sgpr_32, preferred-register: '' } 19 - { id: 2, class: sgpr_32, preferred-register: '' } 20 - { id: 3, class: vgpr_32, preferred-register: '' } 21 - { id: 4, class: vgpr_32, preferred-register: '' } 22 - { id: 5, class: sgpr_32, preferred-register: '' } 23 - { id: 6, class: vgpr_32, preferred-register: '' } 24 - { id: 7, class: vgpr_32, preferred-register: '' } 25 - { id: 8, class: sreg_32_xm0, preferred-register: '' } 26 - { id: 9, class: sreg_32, preferred-register: '' } 27 - { id: 10, class: sreg_32, preferred-register: '' } 28 - { id: 11, class: vgpr_32, preferred-register: '' } 29 - { id: 12, class: vgpr_32, preferred-register: '' } 30liveins: 31 - { reg: '$sgpr0', virtual-reg: '%0' } 32 - { reg: '$sgpr1', virtual-reg: '%1' } 33 - { reg: '$sgpr2', virtual-reg: '%2' } 34 - { reg: '$vgpr0', virtual-reg: '%3' } 35body: | 36 bb.0: 37 liveins: $sgpr0, $sgpr1, $sgpr2, $vgpr0 38 39 %3 = COPY $vgpr0 40 %2 = COPY $sgpr2 41 %1 = COPY $sgpr1 42 %0 = COPY $sgpr0 43 S_CMP_LT_I32 0, %0, implicit-def $scc 44 %12 = V_ADD_I32_e32 %3, %3, implicit-def $vcc, implicit $exec 45 %5 = S_CSELECT_B32 %2, %1, implicit $scc 46 %11 = V_ADD_I32_e32 %5, %12, implicit-def $vcc, implicit $exec 47 $vgpr0 = WWM %11, implicit $exec 48 SI_RETURN_TO_EPILOG $vgpr0 49 50... 51