1 ; RUN: llc -mtriple=aarch64-linux-gnu -code-model=large -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple=aarch64-apple-darwin -code-model=large -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
4 ; CHECK-LABEL: check_float2
5 ; CHECK: mov [[REG:w[0-9]+]], #4059
6 ; CHECK: movk [[REG]], #16457, lsl #16
7 ; CHECK-NEXT: fmov {{s[0-9]+}}, [[REG]]
8 define float @check_float2() {
9 ret float 3.14159274101257324218750
12 ; CHECK-LABEL: check_double2
13 ; CHECK: mov [[REG:x[0-9]+]], #11544
14 ; CHECK-NEXT: movk [[REG]], #21572, lsl #16
15 ; CHECK-NEXT: movk [[REG]], #8699, lsl #32
16 ; CHECK-NEXT: movk [[REG]], #16393, lsl #48
17 ; LARGE-NEXT: fmov {{d[0-9]+}}, [[REG]]
18 define double @check_double2() {
19 ret double 3.1415926535897931159979634685441851615905761718750