1 ; RUN: llc < %s -mtriple=arm64-apple-darwin | FileCheck %s
4 ; CHECK: .quad 0x400921fb54442d18
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 0x0000001fffffffc
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
43 ; CHECK: .quad 0x0000001fffffffd
44 define double @foo2_pgso() !prof !14 {
46 ; CHECK: adrp x[[REG:[0-9]+]], lCPI4_0@PAGE
47 ; CHECK: ldr d0, [x[[REG]], lCPI4_0@PAGEOFF]
49 ret double 0x1FFFFFFFd1
52 define float @bar_pgso() !prof !14 {
54 ; CHECK: adrp x[[REG:[0-9]+]], lCPI5_0@PAGE
55 ; CHECK: ldr s0, [x[[REG]], lCPI5_0@PAGEOFF]
57 ret float 0x400921FB80000000
60 !llvm.module.flags = !{!0}
61 !0 = !{i32 1, !"ProfileSummary", !1}
62 !1 = !{!2, !3, !4, !5, !6, !7, !8, !9}
63 !2 = !{!"ProfileFormat", !"InstrProf"}
64 !3 = !{!"TotalCount", i64 10000}
65 !4 = !{!"MaxCount", i64 10}
66 !5 = !{!"MaxInternalCount", i64 1}
67 !6 = !{!"MaxFunctionCount", i64 1000}
68 !7 = !{!"NumCounts", i64 3}
69 !8 = !{!"NumFunctions", i64 3}
70 !9 = !{!"DetailedSummary", !10}
71 !10 = !{!11, !12, !13}
72 !11 = !{i32 10000, i64 100, i32 1}
73 !12 = !{i32 999000, i64 100, i32 1}
74 !13 = !{i32 999999, i64 1, i32 2}
75 !14 = !{!"function_entry_count", i64 0}