1; RUN: llc < %s -mtriple=thumbv7-apple-ios %s -o - | FileCheck %s 2 3@g0 = common global i32 0, align 4 4@d0 = common global double 0.000000e+00, align 8 5@f0 = common global float 0.000000e+00, align 4 6@g1 = common global i32 0, align 4 7 8declare i32 @llvm.arm.space(i32, i32) 9 10; Check that the constant island pass moves the float constant pool entry inside 11; the function. 12 13; CHECK: .long 0x3f9e05ee @ float 1.23455596 14; CHECK: {{.*}} %do.end 15 16define i32 @testpadding(i32 %a) { 17entry: 18 %0 = load i32, i32* @g0, align 4 19 %add = add nsw i32 %0, 12 20 store i32 %add, i32* @g0, align 4 21 %1 = load double, double* @d0, align 8 22 %add1 = fadd double %1, 0x3FF3C0B8ED46EACB 23 store double %add1, double* @d0, align 8 24 %tmpcall11 = call i32 @llvm.arm.space(i32 28, i32 undef) 25 call void @foo20(i32 191) 26 %2 = load float, float* @f0, align 4 27 %add2 = fadd float %2, 0x3FF3C0BDC0000000 28 store float %add2, float* @f0, align 4 29 br label %do.body 30 31do.body: ; preds = %do.body, %entry 32 tail call void @foo20(i32 19) 33 %3 = load i32, i32* @g1, align 4 34 %tobool = icmp eq i32 %3, 0 35 br i1 %tobool, label %do.end, label %do.body 36 37do.end: ; preds = %do.body 38 %tmpcall111 = call i32 @llvm.arm.space(i32 954, i32 undef) 39 ret i32 10 40} 41 42declare void @foo20(i32) 43