brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 2774a93 Raw
48 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc < %s -mtriple=i386 --frame-pointer=all | FileCheck %s3 4; ISel will try to fold pointer arithmetic into the address displacement. However, we don't5; want to do that if the offset is very close to the expressible limit because the final frame6; layout may push it over/under the limit.7 8define i32 @foo(i1 %b) #0 {9; CHECK-LABEL: foo:10; CHECK:       # %bb.0: # %entry11; CHECK-NEXT:    pushl %ebp12; CHECK-NEXT:    .cfi_def_cfa_offset 813; CHECK-NEXT:    .cfi_offset %ebp, -814; CHECK-NEXT:    movl %esp, %ebp15; CHECK-NEXT:    .cfi_def_cfa_register %ebp16; CHECK-NEXT:    subl $8, %esp17; CHECK-NEXT:    movl __stack_chk_guard, %eax18; CHECK-NEXT:    movl %eax, -4(%ebp)19; CHECK-NEXT:    testb $1, 8(%ebp)20; CHECK-NEXT:    jne .LBB0_121; CHECK-NEXT:  # %bb.2: # %entry22; CHECK-NEXT:    xorl %eax, %eax23; CHECK-NEXT:    jmp .LBB0_324; CHECK-NEXT:  .LBB0_1:25; CHECK-NEXT:    movl $-2147483647, %eax # imm = 0x8000000126; CHECK-NEXT:    leal -5(%ebp,%eax), %eax27; CHECK-NEXT:  .LBB0_3: # %entry28; CHECK-NEXT:    movl __stack_chk_guard, %ecx29; CHECK-NEXT:    cmpl -4(%ebp), %ecx30; CHECK-NEXT:    jne .LBB0_531; CHECK-NEXT:  # %bb.4: # %entry32; CHECK-NEXT:    addl $8, %esp33; CHECK-NEXT:    popl %ebp34; CHECK-NEXT:    .cfi_def_cfa %esp, 435; CHECK-NEXT:    retl36; CHECK-NEXT:  .LBB0_5: # %entry37; CHECK-NEXT:    .cfi_def_cfa %ebp, 838; CHECK-NEXT:    calll __stack_chk_fail39entry:40  %a = alloca i8, align 141  %0 = ptrtoint ptr %a to i3242  %sub = add i32 %0, -214748364743  %retval.0 = select i1 %b, i32 %sub, i32 044  ret i32 %retval.045}46 47attributes #0 = { sspreq }48