2009-08-18 00:37:11 +08:00
|
|
|
; RUN: llvm-as < %s | llc -march=xcore -mcpu=xs1b-generic | FileCheck %s
|
|
|
|
|
2009-08-19 05:14:31 +08:00
|
|
|
; CHECK: .section .cp.rodata.cst4,"aMc",@progbits,4
|
2009-08-18 00:37:11 +08:00
|
|
|
; CHECK: .LCPI1_0:
|
|
|
|
; CHECK: .long 12345678
|
|
|
|
; CHECK: f:
|
|
|
|
; CHECK: ldw r0, cp[.LCPI1_0]
|
|
|
|
define i32 @f() {
|
|
|
|
entry:
|
|
|
|
ret i32 12345678
|
|
|
|
}
|