1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -verify-machineinstrs 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; Make sure we don't end up with a CBNZ of an undef v-/phys-reg. 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" 6*9880d681SAndroid Build Coastguard Workertarget triple = "arm64-apple-ios" 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdeclare void @bar(i8*) 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine void @foo(i8* %m, i32 %off0) { 11*9880d681SAndroid Build Coastguard Worker.thread1653: 12*9880d681SAndroid Build Coastguard Worker br i1 undef, label %0, label %.thread1880 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker %1 = icmp eq i32 undef, 0 15*9880d681SAndroid Build Coastguard Worker %.not = xor i1 %1, true 16*9880d681SAndroid Build Coastguard Worker %brmerge = or i1 %.not, undef 17*9880d681SAndroid Build Coastguard Worker br i1 %brmerge, label %.thread1880, label %.thread1705 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker.thread1705: 20*9880d681SAndroid Build Coastguard Worker ret void 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker.thread1880: 23*9880d681SAndroid Build Coastguard Worker %m1652.ph = phi i8* [ %m, %0 ], [ null, %.thread1653 ] 24*9880d681SAndroid Build Coastguard Worker call void @bar(i8* %m1652.ph) 25*9880d681SAndroid Build Coastguard Worker ret void 26*9880d681SAndroid Build Coastguard Worker} 27