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_nan_rhs_fminimum_half
9 ; CHECK-LABEL: name: test_combine_nan_rhs_fminimum_half
10 ; CHECK: [[C:%[0-9]+]]:_(s16) = G_FCONSTANT half 0xH7C01
11 ; CHECK-NEXT: $h0 = COPY [[C]](s16)
13 %1:_(s16) = G_FCONSTANT half 0xH7C01
14 %2:_(s16) = G_FMINIMUM %0, %1
18 name: test_combine_nan_rhs_fminimum_float
22 ; CHECK-LABEL: name: test_combine_nan_rhs_fminimum_float
23 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 0x7FF8000000000000
24 ; CHECK-NEXT: $w0 = COPY [[C]](s32)
26 %1:_(s32) = G_FCONSTANT float 0x7FF8000000000000
27 %2:_(s32) = G_FMINIMUM %0, %1
31 name: test_combine_nan_rhs_fminimum_double
35 ; CHECK-LABEL: name: test_combine_nan_rhs_fminimum_double
36 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double 0x7FF8000000000000
37 ; CHECK-NEXT: $x0 = COPY [[C]](s64)
39 %1:_(s64) = G_FCONSTANT double 0x7FF8000000000000
40 %2:_(s64) = G_FMINIMUM %0, %1
44 name: test_combine_nan_lhs_fminimum_half
48 ; CHECK-LABEL: name: test_combine_nan_lhs_fminimum_half
49 ; CHECK: [[C:%[0-9]+]]:_(s16) = G_FCONSTANT half 0xH7C01
50 ; CHECK-NEXT: $h0 = COPY [[C]](s16)
52 %1:_(s16) = G_FCONSTANT half 0xH7C01
53 %2:_(s16) = G_FMINIMUM %1, %0
57 name: test_combine_nan_lhs_fminimum_float
61 ; CHECK-LABEL: name: test_combine_nan_lhs_fminimum_float
62 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 0x7FF8000000000000
63 ; CHECK-NEXT: $w0 = COPY [[C]](s32)
65 %1:_(s32) = G_FCONSTANT float 0x7FF8000000000000
66 %2:_(s32) = G_FMINIMUM %1, %0
70 name: test_combine_nan_lhs_fminimum_double
74 ; CHECK-LABEL: name: test_combine_nan_lhs_fminimum_double
75 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double 0x7FF8000000000000
76 ; CHECK-NEXT: $x0 = COPY [[C]](s64)
78 %1:_(s64) = G_FCONSTANT double 0x7FF8000000000000
79 %2:_(s64) = G_FMINIMUM %1, %0
83 name: test_combine_nan_rhs_fmaximum_half
87 ; CHECK-LABEL: name: test_combine_nan_rhs_fmaximum_half
88 ; CHECK: [[C:%[0-9]+]]:_(s16) = G_FCONSTANT half 0xH7C01
89 ; CHECK-NEXT: $h0 = COPY [[C]](s16)
91 %1:_(s16) = G_FCONSTANT half 0xH7C01
92 %2:_(s16) = G_FMAXIMUM %0, %1
96 name: test_combine_nan_rhs_fmaximum_float
100 ; CHECK-LABEL: name: test_combine_nan_rhs_fmaximum_float
101 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 0x7FF8000000000000
102 ; CHECK-NEXT: $w0 = COPY [[C]](s32)
104 %1:_(s32) = G_FCONSTANT float 0x7FF8000000000000
105 %2:_(s32) = G_FMAXIMUM %0, %1
109 name: test_combine_nan_rhs_fmaximum_double
113 ; CHECK-LABEL: name: test_combine_nan_rhs_fmaximum_double
114 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double 0x7FF8000000000000
115 ; CHECK-NEXT: $x0 = COPY [[C]](s64)
117 %1:_(s64) = G_FCONSTANT double 0x7FF8000000000000
118 %2:_(s64) = G_FMAXIMUM %0, %1
122 name: test_combine_nan_lhs_fmaximum_half
126 ; CHECK-LABEL: name: test_combine_nan_lhs_fmaximum_half
127 ; CHECK: [[C:%[0-9]+]]:_(s16) = G_FCONSTANT half 0xH7C01
128 ; CHECK-NEXT: $h0 = COPY [[C]](s16)
130 %1:_(s16) = G_FCONSTANT half 0xH7C01
131 %2:_(s16) = G_FMAXIMUM %1, %0
135 name: test_combine_nan_lhs_fmaximum_float
139 ; CHECK-LABEL: name: test_combine_nan_lhs_fmaximum_float
140 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 0x7FF8000000000000
141 ; CHECK-NEXT: $w0 = COPY [[C]](s32)
143 %1:_(s32) = G_FCONSTANT float 0x7FF8000000000000
144 %2:_(s32) = G_FMAXIMUM %1, %0
148 name: test_combine_nan_lhs_fmaximum_double
152 ; CHECK-LABEL: name: test_combine_nan_lhs_fmaximum_double
153 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double 0x7FF8000000000000
154 ; CHECK-NEXT: $x0 = COPY [[C]](s64)
156 %1:_(s64) = G_FCONSTANT double 0x7FF8000000000000
157 %2:_(s64) = G_FMAXIMUM %1, %0