]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/X86/dyn_alloca_aligned.ll
Vendor import of llvm trunk r291274:
[FreeBSD/FreeBSD.git] / test / CodeGen / X86 / dyn_alloca_aligned.ll
1 ; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
2 define i32 @A(i32 %Size) {
3 ; CHECK:  subq    %rcx, %rax
4 ; CHECK:  andq    $-128, %rax
5 ; CHECK:  movq    %rax, %rsp
6   %A = alloca i8, i32 %Size, align 128
7   %A_addr = ptrtoint i8* %A to i32
8   ret i32 %A_addr
9 }