1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86-64 2*9880d681SAndroid Build Coastguard Worker; <rdar://problem/7499313> 3*9880d681SAndroid Build Coastguard Workertarget triple = "i686-apple-darwin8" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdeclare void @func2(i16 zeroext) 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine void @func1() nounwind { 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker %t1 = icmp ne i8 undef, 0 10*9880d681SAndroid Build Coastguard Worker %t2 = icmp eq i8 undef, 14 11*9880d681SAndroid Build Coastguard Worker %t3 = and i1 %t1, %t2 12*9880d681SAndroid Build Coastguard Worker %t4 = select i1 %t3, i16 0, i16 128 13*9880d681SAndroid Build Coastguard Worker call void @func2(i16 zeroext %t4) nounwind 14*9880d681SAndroid Build Coastguard Worker ret void 15*9880d681SAndroid Build Coastguard Worker} 16