source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AArch64/arm64-fp-imm.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 772 bytes
Line 
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}
Note: See TracBrowser for help on using the repository browser.