1 ; RUN: llc -mtriple=aarch64-linux-gnu -verify-machineinstrs -o - %s
3 ; Regression test for NZCV reg live-in not being added to fp128csel IfTrue BB,
4 ; causing a crash during live range calc.
5 define void @fp128_livein(i64 %a) {
6 %tobool = icmp ne i64 %a, 0
7 %conv = zext i1 %tobool to i32
8 %conv2 = sitofp i32 %conv to fp128
9 %conv6 = sitofp i32 %conv to double
10 %call3 = tail call i32 @g(fp128 %conv2)
11 %call8 = tail call i32 @h(double %conv6)
17 declare i32 @h(double)