; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 ; RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1010 < %s | FileCheck -check-prefix=GFX10 %s define amdgpu_ps void @live_mask(ptr addrspace(1) %out) { ; GFX10-LABEL: live_mask: ; GFX10: ; %bb.0: ; GFX10-NEXT: s_mov_b32 s0, exec_lo ; GFX10-NEXT: v_cndmask_b32_e64 v2, 0, 1, s0 ; GFX10-NEXT: v_add_nc_u32_e32 v2, v2, v2 ; GFX10-NEXT: global_store_dword v[0:1], v2, off ; GFX10-NEXT: s_endpgm %live = call i1 @llvm.amdgcn.live.mask() %ext = zext i1 %live to i32 %add = add i32 %ext, %ext store i32 %add, ptr addrspace(1) %out ret void } declare i1 @llvm.amdgcn.live.mask()