brintos

brintos / llvm-project-archived public Read only

0
0
Text · 781 B · de7b0cc Raw
32 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-linux-gnueabihf %s -o - | FileCheck %s2 3; Check that new water is created by splitting the basic block after the4; load instruction. Previously, new water was created before the load5; instruction, which caused the pass to fail to converge.6 7define void @test(i1 %tst) {8; CHECK-LABEL: test:9; CHECK: vldr  {{s[0-9]+}}, [[CONST:\.LCPI[0-9]+_[0-9]+]]10 11; CHECK: b.w [[CONTINUE:\.LBB[0-9]+_[0-9]+]]12; CHECK: [[CONST]]:13; CHECK-NEXT: .long14 15; CHECK: [[CONTINUE]]:16 17entry:18  br i1 %tst, label %true, label %false19 20true:21  %val = phi float [12345.0, %entry], [undef, %false]22  call i32 @llvm.arm.space(i32 2000, i32 undef)23  call void @bar(float %val)24  ret void25 26false:27  br label %true28}29 30declare void @bar(float)31declare i32 @llvm.arm.space(i32, i32)32