[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / fast-isel-const-float.ll
blob4de2c934a672e4ee758b6cb4154080f7eb9a3d4b
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-none-linux-gnu -global-isel -verify-machineinstrs < %s | FileCheck %s --check-prefix=GISEL
3 ; RUN: llc -mtriple=aarch64-none-linux-gnu -fast-isel -verify-machineinstrs < %s | FileCheck %s --check-prefix=FISEL
5 ; float foo(void) { return float(2147483648); }
6 define float @select_fp_const() {
7 ; CHECK-LABEL: select_opt4
8 ; CHECK: movi v0.2s, #79, lsl #24
9 ; GISEL-LABEL: select_fp_const:
10 ; GISEL:       // %bb.0: // %entry
11 ; GISEL-NEXT:    movi v0.2s, #79, lsl #24
12 ; GISEL-NEXT:    ret
14 ; FISEL-LABEL: select_fp_const:
15 ; FISEL:       // %bb.0: // %entry
16 ; FISEL-NEXT:    adrp x8, .LCPI0_0
17 ; FISEL-NEXT:    ldr s0, [x8, :lo12:.LCPI0_0]
18 ; FISEL-NEXT:    ret
19 entry:
20   ret float 0x41E0000000000000