mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
10 lines
262 B
LLVM
10 lines
262 B
LLVM
|
; 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
|
||
|
}
|