1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -run-pass=aarch64-prelegalizer-combiner -verify-machineinstrs -mtriple aarch64-unknown-unknown %s -o - | FileCheck %s
5 name: test_combine_half_fsqrt_constant
9 ; CHECK-LABEL: name: test_combine_half_fsqrt_constant
10 ; CHECK: [[C:%[0-9]+]]:_(s16) = G_FCONSTANT half 0xH4000
11 ; CHECK: $h0 = COPY [[C]](s16)
12 %0:_(s16) = G_FCONSTANT half 4.000000e+00
13 %1:_(s16) = G_FSQRT %0
17 name: test_combine_float_fsqrt_constant
21 ; CHECK-LABEL: name: test_combine_float_fsqrt_constant
22 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 2.000000e+00
23 ; CHECK: $w0 = COPY [[C]](s32)
24 %0:_(s32) = G_FCONSTANT float 4.000000e+00
25 %1:_(s32) = G_FSQRT %0
29 name: test_combine_double_fsqrt_constant
33 ; CHECK-LABEL: name: test_combine_double_fsqrt_constant
34 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double 2.000000e+00
35 ; CHECK: $x0 = COPY [[C]](s64)
36 %0:_(s64) = G_FCONSTANT double 4.000000e+00
37 %1:_(s64) = G_FSQRT %0