Skip to content

Commit 61acc5d

Browse files
committed
pre-commit tests
1 parent e975ff0 commit 61acc5d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

llvm/test/Transforms/InstCombine/fcmp-special.ll

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,24 @@ define i1 @nnan_ops_to_fcmp_uno(float %x, float %y) {
186186
ret i1 %cmp
187187
}
188188

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+
189207
; TODO: For any predicate/type/FMF, comparison to -0.0 is the same as comparison to +0.0.
190208

191209
define i1 @negative_zero_oeq(float %x) {

0 commit comments

Comments
 (0)