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