We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31be3c commit a31fc9fCopy full SHA for a31fc9f
llvm/test/Transforms/InstCombine/fpclass-check-idioms.ll
@@ -1120,9 +1120,7 @@ define i1 @fpclass_test_normal_fp128(ppc_fp128 %x) {
1120
define i1 @fpclass_test_normal_mismatch_pred(float %num) {
1121
; CHECK-LABEL: define i1 @fpclass_test_normal_mismatch_pred(
1122
; CHECK-SAME: float [[NUM:%.*]]) {
1123
-; CHECK-NEXT: [[CAST:%.*]] = bitcast float [[NUM]] to i32
1124
-; CHECK-NEXT: [[MASKED:%.*]] = and i32 [[CAST]], 2139095040
1125
-; CHECK-NEXT: [[TEST2:%.*]] = icmp eq i32 [[MASKED]], 0
+; CHECK-NEXT: [[TEST2:%.*]] = call i1 @llvm.is.fpclass.f32(float [[NUM]], i32 240)
1126
; CHECK-NEXT: ret i1 [[TEST2]]
1127
;
1128
%cast = bitcast float %num to i32
0 commit comments