mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 06:54:54 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179619 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
393 B
LLVM
21 lines
393 B
LLVM
; RUN: llc < %s -march=xcore | FileCheck %s
|
|
|
|
; Byte aligned store.
|
|
; CHECK: align1:
|
|
; CHECK: bl __misaligned_store
|
|
define void @align1(i32* %p, i32 %val) nounwind {
|
|
entry:
|
|
store i32 %val, i32* %p, align 1
|
|
ret void
|
|
}
|
|
|
|
; Half word aligned store.
|
|
; CHECK: align2
|
|
; CHECK: st16
|
|
; CHECK: st16
|
|
define void @align2(i32* %p, i32 %val) nounwind {
|
|
entry:
|
|
store i32 %val, i32* %p, align 2
|
|
ret void
|
|
}
|