1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no_x86_scrub_sp
2 ; RUN: llc -mtriple=x86_64-linux-android < %s | FileCheck -check-prefix=CHECK-X86-64 %s
3 ; RUN: llc -mtriple=i686-linux-android < %s | FileCheck -check-prefix=CHECK-X86-32 %s
5 define i32 @foo() local_unnamed_addr #0 {
6 ; CHECK-X86-64-LABEL: foo:
7 ; CHECK-X86-64: # %bb.0:
8 ; CHECK-X86-64-NEXT: subq $4096, %rsp # imm = 0x1000
9 ; CHECK-X86-64-NEXT: .cfi_adjust_cfa_offset 4096
10 ; CHECK-X86-64-NEXT: movq $0, (%rsp)
11 ; CHECK-X86-64-NEXT: subq $3784, %rsp # imm = 0xEC8
12 ; CHECK-X86-64-NEXT: .cfi_def_cfa_offset 7888
13 ; CHECK-X86-64-NEXT: movl $1, 672(%rsp)
14 ; CHECK-X86-64-NEXT: movl -128(%rsp), %eax
15 ; CHECK-X86-64-NEXT: addq $7880, %rsp # imm = 0x1EC8
16 ; CHECK-X86-64-NEXT: .cfi_def_cfa_offset 8
17 ; CHECK-X86-64-NEXT: retq
19 ; CHECK-X86-32-LABEL: foo:
20 ; CHECK-X86-32: # %bb.0:
21 ; CHECK-X86-32-NEXT: subl $4096, %esp # imm = 0x1000
22 ; CHECK-X86-32-NEXT: .cfi_adjust_cfa_offset 4096
23 ; CHECK-X86-32-NEXT: movl $0, (%esp)
24 ; CHECK-X86-32-NEXT: subl $3916, %esp # imm = 0xF4C
25 ; CHECK-X86-32-NEXT: .cfi_def_cfa_offset 8016
26 ; CHECK-X86-32-NEXT: movl $1, 800(%esp)
27 ; CHECK-X86-32-NEXT: movl (%esp), %eax
28 ; CHECK-X86-32-NEXT: addl $8012, %esp # imm = 0x1F4C
29 ; CHECK-X86-32-NEXT: .cfi_def_cfa_offset 4
30 ; CHECK-X86-32-NEXT: retl
31 %a = alloca i32, i64 2000, align 16
32 %b = getelementptr inbounds i32, ptr %a, i64 200
33 store volatile i32 1, ptr %b
34 %c = load volatile i32, ptr %a
38 attributes #0 = {"probe-stack"="inline-asm"}