[llvm] f7a615a - ValueTracking: Use correct compare type in test

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 23:25:05 PST 2024


Author: Matt Arsenault
Date: 2024-01-25T12:54:47+05:30
New Revision: f7a615a7d5a3a01d7d0ca46f8481248ef587cfe2

URL: https://github.com/llvm/llvm-project/commit/f7a615a7d5a3a01d7d0ca46f8481248ef587cfe2
DIFF: https://github.com/llvm/llvm-project/commit/f7a615a7d5a3a01d7d0ca46f8481248ef587cfe2.diff

LOG: ValueTracking: Use correct compare type in test

Added: 
    

Modified: 
    llvm/test/Transforms/Attributor/nofpclass-implied-by-fcmp.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Attributor/nofpclass-implied-by-fcmp.ll b/llvm/test/Transforms/Attributor/nofpclass-implied-by-fcmp.ll
index d34e8ad106b42a..7fe73879e386b1 100644
--- a/llvm/test/Transforms/Attributor/nofpclass-implied-by-fcmp.ll
+++ b/llvm/test/Transforms/Attributor/nofpclass-implied-by-fcmp.ll
@@ -690,11 +690,11 @@ define float @clamp_ule_largest_denormal_0.0(float %arg) {
 define float @clamp_ogt_largest_denormal_0.0(float %arg) {
 ; CHECK-LABEL: define float @clamp_ogt_largest_denormal_0.0(
 ; CHECK-SAME: float [[ARG:%.*]]) #[[ATTR2]] {
-; CHECK-NEXT:    [[IS_OGT_LARGEST_DENORMAL:%.*]] = fcmp ugt float [[ARG]], 0x380FFFFFC0000000
+; CHECK-NEXT:    [[IS_OGT_LARGEST_DENORMAL:%.*]] = fcmp ogt float [[ARG]], 0x380FFFFFC0000000
 ; CHECK-NEXT:    [[SELECT:%.*]] = select i1 [[IS_OGT_LARGEST_DENORMAL]], float [[ARG]], float 0.000000e+00
 ; CHECK-NEXT:    ret float [[SELECT]]
 ;
-  %is.ogt.largest.denormal = fcmp ugt float %arg, 0x380FFFFFC0000000
+  %is.ogt.largest.denormal = fcmp ogt float %arg, 0x380FFFFFC0000000
   %select = select i1 %is.ogt.largest.denormal, float %arg, float 0.0
   ret float %select
 }


        


More information about the llvm-commits mailing list