[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / movid-no-neon.ll
blob581b0fb8d385c5a24f1cc8553517f9e852b8d357
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
41   ret half 0.000000e+00