| ; RUN: llc -mtriple=x86_64-pc-linux -mcpu=corei7 < %s | FileCheck -check-prefix=CORE_LP64 %s |
| ; RUN: llc -mtriple=x86_64-pc-linux -mcpu=atom < %s | FileCheck -check-prefix=ATOM_LP64 %s |
| ; RUN: llc -mtriple=x86_64-pc-linux-gnux32 -mcpu=corei7 < %s | FileCheck -check-prefix=CORE_ILP32 %s |
| ; RUN: llc -mtriple=x86_64-pc-linux-gnux32 -mcpu=atom < %s | FileCheck -check-prefix=ATOM_ILP32 %s |
| define i32 @bar(i32 %a) nounwind { |
| %arr = alloca [400 x i32], align 16 |
| ; There is a 2x2 variation matrix here: |
| ; Atoms use LEA to update the SP. Opcode bitness depends on data model. |
| ; Cores use sub/add to update the SP. Opcode bitness depends on data model. |
| %arraydecay = getelementptr inbounds [400 x i32]* %arr, i64 0, i64 0 |
| %call = call i32 @foo(i32 %a, i32* %arraydecay) nounwind |
| declare i32 @foo(i32, i32*) |