brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · cf04d5a Raw
43 lines · plain
1; RUN: llc < %s -mtriple=thumbv7-apple-ios %s -o - | FileCheck %s2 3@g0 = common global i32 0, align 44@d0 = common global double 0.000000e+00, align 85@f0 = common global float 0.000000e+00, align 46@g1 = common global i32 0, align 47 8declare i32 @llvm.arm.space(i32, i32)9 10; Check that the constant island pass moves the float constant pool entry inside11; the function.12 13; CHECK: .long 0x3f9e05ee @ float 1.2345559614; CHECK: {{.*}} %do.end15 16define i32 @testpadding(i32 %a) {17entry:18  %0 = load i32, ptr @g0, align 419  %add = add nsw i32 %0, 1220  store i32 %add, ptr @g0, align 421  %1 = load double, ptr @d0, align 822  %add1 = fadd double %1, 0x3FF3C0B8ED46EACB23  store double %add1, ptr @d0, align 824  %tmpcall11 = call i32 @llvm.arm.space(i32 28, i32 undef)25  call void @foo20(i32 191)26  %2 = load float, ptr @f0, align 427  %add2 = fadd float %2, 0x3FF3C0BDC000000028  store float %add2, ptr @f0, align 429  br label %do.body30 31do.body:                                          ; preds = %do.body, %entry32  tail call void @foo20(i32 19)33  %3 = load i32, ptr @g1, align 434  %tobool = icmp eq i32 %3, 035  br i1 %tobool, label %do.end, label %do.body36 37do.end:                                           ; preds = %do.body38  %tmpcall111 = call i32 @llvm.arm.space(i32 954, i32 undef)39  ret i32 1040}41 42declare void @foo20(i32)43