1 ; RUN: llc < %s -mtriple=arm64-apple-darwin | FileCheck %s
4 ; CHECK: .quad 4614256656552045848
5 define double @foo() optsize {
7 ; CHECK: adrp x[[REG:[0-9]+]], lCPI0_0@PAGE
8 ; CHECK: ldr d0, [x[[REG]], lCPI0_0@PAGEOFF]
10 ret double 0x400921FB54442D18
14 ; CHECK: .quad 137438953409
15 define double @foo2() optsize {
17 ; CHECK: adrp x[[REG:[0-9]+]], lCPI1_0@PAGE
18 ; CHECK: ldr d0, [x[[REG]], lCPI1_0@PAGEOFF]
20 ret double 0x1FFFFFFFC1
23 define float @bar() optsize {
25 ; CHECK: adrp x[[REG:[0-9]+]], lCPI2_0@PAGE
26 ; CHECK: ldr s0, [x[[REG]], lCPI2_0@PAGEOFF]
28 ret float 0x400921FB60000000
34 define fp128 @baz() optsize {
36 ; CHECK: adrp x[[REG:[0-9]+]], lCPI3_0@PAGE
37 ; CHECK: ldr q0, [x[[REG]], lCPI3_0@PAGEOFF]
39 ret fp128 0xL00000000000000000000000000000000