[llvm] a68b87d - ValueTracking: Fix unintended nofpclass inference test
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 14:36:32 PDT 2023
Author: Matt Arsenault
Date: 2023-08-15T17:36:26-04:00
New Revision: a68b87df2b6e6450b96b2d492b78aea9d26e5337
URL: https://github.com/llvm/llvm-project/commit/a68b87df2b6e6450b96b2d492b78aea9d26e5337
DIFF: https://github.com/llvm/llvm-project/commit/a68b87df2b6e6450b96b2d492b78aea9d26e5337.diff
LOG: ValueTracking: Fix unintended nofpclass inference test
The name says it shouldn't be not inf, not eq inf.
Added:
Modified:
llvm/test/Transforms/Attributor/nofpclass.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/Attributor/nofpclass.ll b/llvm/test/Transforms/Attributor/nofpclass.ll
index 74475264d3c332..66c79f7a68c989 100644
--- a/llvm/test/Transforms/Attributor/nofpclass.ll
+++ b/llvm/test/Transforms/Attributor/nofpclass.ll
@@ -522,15 +522,15 @@ entry:
; Assume not subnormal or zero, and not infinity
define half @fcmp_assume2_callsite_arg_return(half %arg) {
-; CHECK-LABEL: define nofpclass(nan ninf zero sub norm) half @fcmp_assume2_callsite_arg_return
-; CHECK-SAME: (half returned nofpclass(nan ninf zero sub norm) [[ARG:%.*]]) {
+; CHECK-LABEL: define nofpclass(nan pinf zero sub) half @fcmp_assume2_callsite_arg_return
+; CHECK-SAME: (half returned nofpclass(nan pinf zero sub) [[ARG:%.*]]) {
; CHECK-NEXT: entry:
-; CHECK-NEXT: [[FABS:%.*]] = call nofpclass(nan ninf zero sub norm) half @llvm.fabs.f16(half nofpclass(nan ninf zero sub norm) [[ARG]]) #[[ATTR16]]
+; CHECK-NEXT: [[FABS:%.*]] = call nofpclass(nan ninf nzero nsub nnorm) half @llvm.fabs.f16(half nofpclass(nan pinf zero sub) [[ARG]]) #[[ATTR16]]
; CHECK-NEXT: [[NOT_SUBNORMAL_OR_ZERO:%.*]] = fcmp oge half [[FABS]], 0xH0400
; CHECK-NEXT: call void @llvm.assume(i1 noundef [[NOT_SUBNORMAL_OR_ZERO]]) #[[ATTR14]]
-; CHECK-NEXT: [[NOT_INF:%.*]] = fcmp oeq half [[ARG]], 0xH7C00
+; CHECK-NEXT: [[NOT_INF:%.*]] = fcmp one half [[ARG]], 0xH7C00
; CHECK-NEXT: call void @llvm.assume(i1 noundef [[NOT_INF]]) #[[ATTR14]]
-; CHECK-NEXT: call void @extern.use.f16(half nofpclass(nan ninf zero sub norm) [[ARG]])
+; CHECK-NEXT: call void @extern.use.f16(half nofpclass(nan pinf zero sub) [[ARG]])
; CHECK-NEXT: ret half [[ARG]]
;
entry:
@@ -538,7 +538,7 @@ entry:
%not.subnormal.or.zero = fcmp oge half %fabs, 0xH0400
call void @llvm.assume(i1 %not.subnormal.or.zero)
- %not.inf = fcmp oeq half %arg, 0xH7C00
+ %not.inf = fcmp one half %arg, 0xH7C00
call void @llvm.assume(i1 %not.inf)
call void @extern.use.f16(half %arg)
More information about the llvm-commits
mailing list