xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/fast-isel-x32.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -fast-isel -fast-isel-abort=1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-nacl -fast-isel -fast-isel-abort=1 | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; Test that alloca addresses are materialized with the right size instruction.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdeclare void @bar(i32* %arg)
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @foo
9*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
10*9880d681SAndroid Build Coastguard Worker  %a = alloca i32
11*9880d681SAndroid Build Coastguard Worker; CHECK: leal {{.*}}, %edi
12*9880d681SAndroid Build Coastguard Worker  call void @bar(i32* %a)
13*9880d681SAndroid Build Coastguard Worker  ret void
14*9880d681SAndroid Build Coastguard Worker}
15