1 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabihf %s -o - | FileCheck %s
3 ; Check that new water is created by splitting the basic block after the
4 ; load instruction. Previously, new water was created before the load
5 ; instruction, which caused the pass to fail to converge.
7 define void @test(i1 %tst) {
9 ; CHECK: vldr {{s[0-9]+}}, [[CONST:\.LCPI[0-9]+_[0-9]+]]
11 ; CHECK: b.w [[CONTINUE:\.LBB[0-9]+_[0-9]+]]
15 ; CHECK: [[CONTINUE]]:
18 br i1 %tst, label %true, label %false
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)
30 declare void @bar(float)
31 declare i32 @llvm.arm.space(i32, i32)