1; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s 2 3; There was an infinite loop in DAGCombiner from a target build_vector 4; combine and a generic insert_vector_elt combine. 5 6; GCN-LABEL: {{^}}combine_loop: 7; GCN: flat_load_ushort 8; GCN: flat_store_short 9; GCN: v_lshlrev_b32_e32 v{{[0-9]+}}, 16, 10define amdgpu_kernel void @combine_loop(i16* %arg) #0 { 11bb: 12 br label %bb1 13 14bb1: 15 %tmp = phi <2 x i16> [ <i16 15360, i16 15360>, %bb ], [ %tmp5, %bb1 ] 16 %tmp2 = phi half [ 0xH0000, %bb ], [ %tmp8, %bb1 ] 17 %tmp3 = load volatile half, half* null, align 536870912 18 %tmp4 = bitcast half %tmp3 to i16 19 %tmp5 = insertelement <2 x i16> <i16 0, i16 undef>, i16 %tmp4, i32 1 20 %tmp6 = bitcast i16* %arg to half* 21 store half %tmp2, half* %tmp6, align 2 22 %tmp7 = bitcast <2 x i16> %tmp to <2 x half> 23 %tmp8 = extractelement <2 x half> %tmp7, i32 0 24 br label %bb1 25} 26 27attributes #0 = { nounwind } 28