mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-11 09:29:20 +00:00
12 lines
248 B
LLVM
12 lines
248 B
LLVM
|
; RUN: llvm-as < %s | llc -march=xcore -mcpu=xs1b-generic | FileCheck %s
|
||
|
|
||
|
; CHECK: .section .cp.rodata,"ac",@progbits
|
||
|
; CHECK: .LCPI1_0:
|
||
|
; CHECK: .long 12345678
|
||
|
; CHECK: f:
|
||
|
; CHECK: ldw r0, cp[.LCPI1_0]
|
||
|
define i32 @f() {
|
||
|
entry:
|
||
|
ret i32 12345678
|
||
|
}
|