1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64 -mattr=+fullfp16,+neon < %s | FileCheck %s --check-prefix=NEON-ENABLED
3 ; RUN: llc -mtriple=aarch64 -mattr=+fullfp16,-neon < %s | FileCheck %s --check-prefix=NEON-DISABLED
5 define float @get_float() {
6 ; NEON-ENABLED-LABEL: get_float:
7 ; NEON-ENABLED: // %bb.0:
8 ; NEON-ENABLED-NEXT: movi d0, #0000000000000000
9 ; NEON-ENABLED-NEXT: ret
11 ; NEON-DISABLED-LABEL: get_float:
12 ; NEON-DISABLED: // %bb.0:
13 ; NEON-DISABLED-NEXT: fmov s0, wzr
14 ; NEON-DISABLED-NEXT: ret
15 ret float 0.000000e+00
18 define double @get_double() {
19 ; NEON-ENABLED-LABEL: get_double:
20 ; NEON-ENABLED: // %bb.0:
21 ; NEON-ENABLED-NEXT: movi d0, #0000000000000000
22 ; NEON-ENABLED-NEXT: ret
24 ; NEON-DISABLED-LABEL: get_double:
25 ; NEON-DISABLED: // %bb.0:
26 ; NEON-DISABLED-NEXT: fmov d0, xzr
27 ; NEON-DISABLED-NEXT: ret
28 ret double 0.000000e+00
31 define half @get_half() {
32 ; NEON-ENABLED-LABEL: get_half:
33 ; NEON-ENABLED: // %bb.0:
34 ; NEON-ENABLED-NEXT: movi d0, #0000000000000000
35 ; NEON-ENABLED-NEXT: ret
37 ; NEON-DISABLED-LABEL: get_half:
38 ; NEON-DISABLED: // %bb.0:
39 ; NEON-DISABLED-NEXT: fmov h0, wzr
40 ; NEON-DISABLED-NEXT: ret