1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-linux-gnu -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=X64
3 ; RUN: llc -mtriple=x86_64-linux-gnu -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=X64
4 ; RUN: llc -mtriple=i386-linux-gnu -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=X32
5 ; RUN: llc -mtriple=i386-linux-gnu -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=X32
6 ; RUN: llc -mtriple=x86_64-linux-gnux32 -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=X32ABI
7 ; RUN: llc -mtriple=x86_64-linux-gnux32 -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=X32ABI
9 define i32* @allocai32() {
10 ; X64-LABEL: allocai32:
12 ; X64-NEXT: leaq -4(%rsp), %rax
15 ; X32-LABEL: allocai32:
17 ; X32-NEXT: pushl %eax
18 ; X32-NEXT: .cfi_def_cfa_offset 8
19 ; X32-NEXT: movl %esp, %eax
21 ; X32-NEXT: .cfi_def_cfa_offset 4
24 ; X32ABI-LABEL: allocai32:
26 ; X32ABI-NEXT: leal -4(%rsp), %eax