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: movq %rsp, %r11
9 ; CHECK-X86-64-NEXT: subq $69632, %r11 # imm = 0x11000
10 ; CHECK-X86-64-NEXT: .LBB0_1: # =>This Inner Loop Header: Depth=1
11 ; CHECK-X86-64-NEXT: subq $4096, %rsp # imm = 0x1000
12 ; CHECK-X86-64-NEXT: movq $0, (%rsp)
13 ; CHECK-X86-64-NEXT: cmpq %r11, %rsp
14 ; CHECK-X86-64-NEXT: jne .LBB0_1
15 ; CHECK-X86-64-NEXT: # %bb.2:
16 ; CHECK-X86-64-NEXT: subq $2248, %rsp # imm = 0x8C8
17 ; CHECK-X86-64-NEXT: .cfi_def_cfa_offset 71888
18 ; CHECK-X86-64-NEXT: movl $1, 264(%rsp)
19 ; CHECK-X86-64-NEXT: movl $1, 28664(%rsp)
20 ; CHECK-X86-64-NEXT: movl -128(%rsp), %eax
21 ; CHECK-X86-64-NEXT: addq $71880, %rsp # imm = 0x118C8
22 ; CHECK-X86-64-NEXT: .cfi_def_cfa_offset 8
23 ; CHECK-X86-64-NEXT: retq
25 ; CHECK-X86-32-LABEL: foo:
26 ; CHECK-X86-32: # %bb.0:
27 ; CHECK-X86-32-NEXT: movl %esp, %r11d
28 ; CHECK-X86-32-NEXT: subl $69632, %r11d # imm = 0x11000
29 ; CHECK-X86-32-NEXT: .LBB0_1: # =>This Inner Loop Header: Depth=1
30 ; CHECK-X86-32-NEXT: subl $4096, %esp # imm = 0x1000
31 ; CHECK-X86-32-NEXT: movl $0, (%esp)
32 ; CHECK-X86-32-NEXT: cmpl %r11d, %esp
33 ; CHECK-X86-32-NEXT: jne .LBB0_1
34 ; CHECK-X86-32-NEXT: # %bb.2:
35 ; CHECK-X86-32-NEXT: subl $2380, %esp # imm = 0x94C
36 ; CHECK-X86-32-NEXT: .cfi_def_cfa_offset 72016
37 ; CHECK-X86-32-NEXT: movl $1, 392(%esp)
38 ; CHECK-X86-32-NEXT: movl $1, 28792(%esp)
39 ; CHECK-X86-32-NEXT: movl (%esp), %eax
40 ; CHECK-X86-32-NEXT: addl $72012, %esp # imm = 0x1194C
41 ; CHECK-X86-32-NEXT: .cfi_def_cfa_offset 4
42 ; CHECK-X86-32-NEXT: retl
43 %a = alloca i32, i64 18000, align 16
44 %b0 = getelementptr inbounds i32, i32* %a, i64 98
45 %b1 = getelementptr inbounds i32, i32* %a, i64 7198
46 store volatile i32 1, i32* %b0
47 store volatile i32 1, i32* %b1
48 %c = load volatile i32, i32* %a
52 attributes #0 = {"probe-stack"="inline-asm"}