1*9880d681SAndroid Build Coastguard Worker; This testcase causes an infinite loop in the instruction combiner, 2*9880d681SAndroid Build Coastguard Worker; because it changes a pattern and the original pattern is almost 3*9880d681SAndroid Build Coastguard Worker; identical to the newly-generated pattern. 4*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -instcombine -disable-output 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker;PR PR9216 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu" 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine <4 x float> @m_387(i8* noalias nocapture %A, i8* nocapture %B, <4 x i1> %C) nounwind { 11*9880d681SAndroid Build Coastguard Workerentry: 12*9880d681SAndroid Build Coastguard Worker %movcsext20 = sext <4 x i1> %C to <4 x i32> 13*9880d681SAndroid Build Coastguard Worker %tmp2389 = xor <4 x i32> %movcsext20, <i32 -1, i32 -1, i32 -1, i32 -1> 14*9880d681SAndroid Build Coastguard Worker %movcand25 = and <4 x i32> %tmp2389, <i32 undef, i32 undef, i32 undef, i32 -1> 15*9880d681SAndroid Build Coastguard Worker %movcor26 = or <4 x i32> %movcand25, zeroinitializer 16*9880d681SAndroid Build Coastguard Worker %L2 = bitcast <4 x i32> %movcor26 to <4 x float> 17*9880d681SAndroid Build Coastguard Worker %L3 = shufflevector <4 x float> zeroinitializer, <4 x float> %L2, <4 x i32> <i32 0, i32 1, i32 2, i32 7> 18*9880d681SAndroid Build Coastguard Worker ret <4 x float> %L3 19*9880d681SAndroid Build Coastguard Worker} 20