brintos

brintos / llvm-project-archived public Read only

0
0
Text · 950 B · d201e14 Raw
31 lines · plain
1; RUN: llc -mtriple=x86_64-pc-linux -mcpu=corei7 < %s | FileCheck -check-prefix=CORE_LP64 %s2; RUN: llc -mtriple=x86_64-pc-linux -mcpu=atom < %s | FileCheck -check-prefix=ATOM_LP64 %s3; RUN: llc -mtriple=x86_64-pc-linux-gnux32 -mcpu=corei7 < %s | FileCheck -check-prefix=CORE_ILP32 %s4; RUN: llc -mtriple=x86_64-pc-linux-gnux32 -mcpu=atom < %s | FileCheck -check-prefix=ATOM_ILP32 %s5 6define i32 @bar(i32 %a) nounwind {7entry:8  %arr = alloca [400 x i32], align 169 10; There is a 2x2 variation matrix here:11; Atoms use LEA to update the SP. Opcode bitness depends on data model.12; Cores use sub/add to update the SP. Opcode bitness depends on data model.13 14; CORE_LP64: subq $160815; CORE_ILP32: subl $160816; ATOM_LP64: leaq -160817; ATOM_ILP32: leal -160818 19  %call = call i32 @foo(i32 %a, ptr %arr) nounwind20  ret i32 %call21 22; CORE_LP64: addq $160823; CORE_ILP32: addl $160824; ATOM_LP64: leaq 160825; ATOM_ILP32: leal 160826 27}28 29declare i32 @foo(i32, ptr)30 31