| # RUN: llc -mtriple=amdgpu9.08-amd-amdhsa -run-pass=print-machine-uniformity -o - %s 2>&1 | FileCheck %s | |
| # RUN: llc -mtriple=amdgpu9.08-amd-amdhsa -passes='print<machine-uniformity>' -filetype=null %s 2>&1 | FileCheck %s | |
| # CHECK-LABEL: MachineUniformityInfo for function: @inlineasm_s | |
| # CHECK-LABEL: BLOCK bb.0 | |
| # CHECK-NOT: DIVERGENT: %0: INLINEASM | |
| --- | |
| name: inlineasm_s | |
| body: | | |
| bb.0: | |
| INLINEASM &"s_mov_b32 $0, 7", attdialect, regdef:SReg_32, def %0:sreg_32 | |
| $sgpr0 = COPY %0 | |
| SI_RETURN implicit $sgpr0 | |
| ... | |
| # CHECK-LABEL: MachineUniformityInfo for function: @inlineasm_v | |
| # CHECK-LABEL: BLOCK bb.0 | |
| # CHECK: DIVERGENT: %0: INLINEASM | |
| --- | |
| name: inlineasm_v | |
| body: | | |
| bb.0: | |
| INLINEASM &"v_mov_b32 $0, 8", attdialect, regdef:VGPR_32, def %0:vgpr_32 | |
| $vgpr0 = COPY %0 | |
| SI_RETURN implicit $vgpr0 | |
| ... | |
| # CHECK-LABEL: MachineUniformityInfo for function: @inlineasm_sv | |
| # CHECK-LABEL: BLOCK bb.0 | |
| # CHECK-NOT: DIVERGENT: %0: INLINEASM | |
| # CHECK: DIVERGENT: %1: INLINEASM | |
| --- | |
| name: inlineasm_sv | |
| body: | | |
| bb.0: | |
| INLINEASM &"s_mov_b32 $0, 7\0Av_mov_b32 $1, 8", attdialect, regdef:SReg_32, def %0:sreg_32, regdef:VGPR_32, def %1:vgpr_32 | |
| $sgpr0 = COPY %0 | |
| $vgpr0 = COPY %1 | |
| SI_RETURN implicit $sgpr0, implicit $vgpr0 | |
| ... | |
| # CHECK-LABEL: MachineUniformityInfo for function: @inlineasm_svs | |
| # CHECK-LABEL: BLOCK bb.0 | |
| # CHECK-NOT: DIVERGENT: %0: INLINEASM | |
| # CHECK: DIVERGENT: %1: INLINEASM | |
| # CHECK-NOT: DIVERGENT: %2: INLINEASM | |
| --- | |
| name: inlineasm_svs | |
| body: | | |
| bb.0: | |
| INLINEASM &"s_mov_b32 $0, 1\0Av_mov_b32 $1, 2\0As_mov_b32 $2, 3", attdialect, regdef:SReg_32, def %0:sreg_32, regdef:VGPR_32, def %1:vgpr_32, regdef:SReg_32, def %2:sreg_32 | |
| $sgpr0 = COPY %0 | |
| $vgpr0 = COPY %1 | |
| $sgpr1 = COPY %2 | |
| SI_RETURN implicit $sgpr0, implicit $vgpr0, implicit $sgpr1 | |
| ... |