llvm.org GIT mirror llvm / release_38 test / CodeGen / X86 / dyn_alloca_aligned.ll
release_38

Tree @release_38 (Download .tar.gz)

dyn_alloca_aligned.ll @release_38raw · history · blame

1
2
3
4
5
6
7
8
9
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
define i32 @A(i32 %Size) {
; CHECK:  subq    %rcx, %rax
; CHECK:  andq    $-128, %rax
; CHECK:  movq    %rax, %rsp
  %A = alloca i8, i32 %Size, align 128
  %A_addr = ptrtoint i8* %A to i32
  ret i32 %A_addr
}