summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/constants.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/constants.ll')
-rw-r--r--test/CodeGen/XCore/constants.ll10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGen/XCore/constants.ll b/test/CodeGen/XCore/constants.ll
index cad1a2153f4fe..c289bf94ce30d 100644
--- a/test/CodeGen/XCore/constants.ll
+++ b/test/CodeGen/XCore/constants.ll
@@ -3,9 +3,17 @@
; CHECK: .section .cp.rodata.cst4,"aMc",@progbits,4
; CHECK: .LCPI0_0:
; CHECK: .long 12345678
-; CHECK: f:
+; CHECK-LABEL: f:
; CHECK: ldw r0, cp[.LCPI0_0]
define i32 @f() {
entry:
ret i32 12345678
}
+
+define i32 @g() {
+entry:
+; CHECK-LABEL: g:
+; CHECK: mkmsk r0, 1
+; CHECK: retsp 0
+ ret i32 1;
+}