2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s
|
2009-08-17 16:37:11 +00:00
|
|
|
|
2011-03-04 20:03:14 +00:00
|
|
|
; CHECK: .section .cp.rodata.cst4,"aMc",@progbits,4
|
2010-04-17 16:29:15 +00:00
|
|
|
; CHECK: .LCPI0_0:
|
2009-08-17 16:37:11 +00:00
|
|
|
; CHECK: .long 12345678
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: f:
|
2010-04-17 16:29:15 +00:00
|
|
|
; CHECK: ldw r0, cp[.LCPI0_0]
|
2009-08-17 16:37:11 +00:00
|
|
|
define i32 @f() {
|
|
|
|
entry:
|
|
|
|
ret i32 12345678
|
|
|
|
}
|
2013-07-02 14:46:34 +00:00
|
|
|
|
|
|
|
define i32 @g() {
|
|
|
|
entry:
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: g:
|
2013-07-02 14:46:34 +00:00
|
|
|
; CHECK: mkmsk r0, 1
|
|
|
|
; CHECK: retsp 0
|
|
|
|
ret i32 1;
|
|
|
|
}
|