1; RUN: llc < %s -mtriple=arm64-apple-darwin | FileCheck %s
2
3; CHECK: literal8
4; CHECK: .quad  4614256656552045848
5define double @foo() {
6; CHECK: _foo:
7; CHECK: adrp x[[REG:[0-9]+]], lCPI0_0@PAGE
8; CHECK: ldr  d0, [x[[REG]], lCPI0_0@PAGEOFF]
9; CHECK-NEXT: ret
10  ret double 0x400921FB54442D18
11}
12
13; CHECK: literal4
14; CHECK: .long 1078530011
15define float @bar() {
16; CHECK: _bar:
17; CHECK:  adrp  x[[REG:[0-9]+]], lCPI1_0@PAGE
18; CHECK:  ldr s0, [x[[REG]], lCPI1_0@PAGEOFF]
19; CHECK-NEXT:  ret
20  ret float 0x400921FB60000000
21}
22
23; CHECK: literal16
24; CHECK: .quad 0
25; CHECK: .quad 0
26define fp128 @baz() {
27; CHECK: _baz:
28; CHECK:  adrp x[[REG:[0-9]+]], lCPI2_0@PAGE
29; CHECK:  ldr  q0, [x[[REG]], lCPI2_0@PAGEOFF]
30; CHECK-NEXT:  ret
31  ret fp128 0xL00000000000000000000000000000000
32}
33