mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Since these are mostly used in "lsl #16", "lsl #32", "lsl #48" combinations to piece together an immediate in 16-bit chunks, hex is probably the most appropriate format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207635 91177308-0d34-0410-b5e6-96231b3b80d8
54 lines
1.7 KiB
LLVM
54 lines
1.7 KiB
LLVM
; RUN: llc -mtriple=arm64-apple-ios < %s | FileCheck %s
|
|
;
|
|
; rdar://14075006
|
|
|
|
define void @odd() nounwind {
|
|
; CHECK-LABEL: odd:
|
|
; CHECK: stp d15, d14, [sp, #-144]!
|
|
; CHECK: stp d13, d12, [sp, #16]
|
|
; CHECK: stp d11, d10, [sp, #32]
|
|
; CHECK: stp d9, d8, [sp, #48]
|
|
; CHECK: stp x28, x27, [sp, #64]
|
|
; CHECK: stp x26, x25, [sp, #80]
|
|
; CHECK: stp x24, x23, [sp, #96]
|
|
; CHECK: stp x22, x21, [sp, #112]
|
|
; CHECK: stp x20, x19, [sp, #128]
|
|
; CHECK: movz x0, #0x2a
|
|
; CHECK: ldp x20, x19, [sp, #128]
|
|
; CHECK: ldp x22, x21, [sp, #112]
|
|
; CHECK: ldp x24, x23, [sp, #96]
|
|
; CHECK: ldp x26, x25, [sp, #80]
|
|
; CHECK: ldp x28, x27, [sp, #64]
|
|
; CHECK: ldp d9, d8, [sp, #48]
|
|
; CHECK: ldp d11, d10, [sp, #32]
|
|
; CHECK: ldp d13, d12, [sp, #16]
|
|
; CHECK: ldp d15, d14, [sp], #144
|
|
call void asm sideeffect "mov x0, #42", "~{x0},~{x19},~{x21},~{x23},~{x25},~{x27},~{d8},~{d10},~{d12},~{d14}"() nounwind
|
|
ret void
|
|
}
|
|
|
|
define void @even() nounwind {
|
|
; CHECK-LABEL: even:
|
|
; CHECK: stp d15, d14, [sp, #-144]!
|
|
; CHECK: stp d13, d12, [sp, #16]
|
|
; CHECK: stp d11, d10, [sp, #32]
|
|
; CHECK: stp d9, d8, [sp, #48]
|
|
; CHECK: stp x28, x27, [sp, #64]
|
|
; CHECK: stp x26, x25, [sp, #80]
|
|
; CHECK: stp x24, x23, [sp, #96]
|
|
; CHECK: stp x22, x21, [sp, #112]
|
|
; CHECK: stp x20, x19, [sp, #128]
|
|
; CHECK: movz x0, #0x2a
|
|
; CHECK: ldp x20, x19, [sp, #128]
|
|
; CHECK: ldp x22, x21, [sp, #112]
|
|
; CHECK: ldp x24, x23, [sp, #96]
|
|
; CHECK: ldp x26, x25, [sp, #80]
|
|
; CHECK: ldp x28, x27, [sp, #64]
|
|
; CHECK: ldp d9, d8, [sp, #48]
|
|
; CHECK: ldp d11, d10, [sp, #32]
|
|
; CHECK: ldp d13, d12, [sp, #16]
|
|
; CHECK: ldp d15, d14, [sp], #144
|
|
call void asm sideeffect "mov x0, #42", "~{x0},~{x20},~{x22},~{x24},~{x26},~{x28},~{d9},~{d11},~{d13},~{d15}"() nounwind
|
|
ret void
|
|
}
|