File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
llvm/test/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,24 @@ define i1 @nnan_ops_to_fcmp_uno(float %x, float %y) {
186
186
ret i1 %cmp
187
187
}
188
188
189
+ define i1 @nan_ops_to_fcmp_ord (float nofpclass(inf zero sub norm) %x , float nofpclass(inf zero sub norm) %y ) {
190
+ ; CHECK-LABEL: @nan_ops_to_fcmp_ord(
191
+ ; CHECK-NEXT: [[CMP:%.*]] = fcmp ord float [[X:%.*]], [[Y:%.*]]
192
+ ; CHECK-NEXT: ret i1 [[CMP]]
193
+ ;
194
+ %cmp = fcmp ord float %x , %y
195
+ ret i1 %cmp
196
+ }
197
+
198
+ define i1 @nan_ops_to_fcmp_uno (float nofpclass(inf zero sub norm) %x , float nofpclass(inf zero sub norm) %y ) {
199
+ ; CHECK-LABEL: @nan_ops_to_fcmp_uno(
200
+ ; CHECK-NEXT: [[CMP:%.*]] = fcmp uno float [[X:%.*]], [[Y:%.*]]
201
+ ; CHECK-NEXT: ret i1 [[CMP]]
202
+ ;
203
+ %cmp = fcmp uno float %x , %y
204
+ ret i1 %cmp
205
+ }
206
+
189
207
; TODO: For any predicate/type/FMF, comparison to -0.0 is the same as comparison to +0.0.
190
208
191
209
define i1 @negative_zero_oeq (float %x ) {
You can’t perform that action at this time.
0 commit comments