source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AArch64/regress-fp128-livein.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 525 bytes
Line 
1; RUN: llc -mtriple=aarch64-linux-gnu -verify-machineinstrs -o - %s
2
3; Regression test for NZCV reg live-in not being added to fp128csel IfTrue BB,
4; causing a crash during live range calc.
5define 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
15declare i32 @f()
16declare i32 @g(fp128)
17declare i32 @h(double)
Note: See TracBrowser for help on using the repository browser.