Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=aarch64-linux-gnu -verify-machineinstrs -o - %s |
Amara Emerson | c5cae0f | 2013-10-24 08:28:24 +0000 | [diff] [blame] | 2 | |
| 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) |
| 12 | ret void |
| 13 | } |
| 14 | |
| 15 | declare i32 @f() |
| 16 | declare i32 @g(fp128) |
| 17 | declare i32 @h(double) |