[llvm] 55c0719 - [InstCombine] auto-generate check lines in test file; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 04:36:43 PST 2023


Author: Sanjay Patel
Date: 2023-02-10T07:35:25-05:00
New Revision: 55c0719557a9789f7ab42623d9a2e7f884fc253e

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

LOG: [InstCombine] auto-generate check lines in test file; NFC

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/exp2-2.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/exp2-2.ll b/llvm/test/Transforms/InstCombine/exp2-2.ll
index 88e6ed3629f7..af9ea47ac56a 100644
--- a/llvm/test/Transforms/InstCombine/exp2-2.ll
+++ b/llvm/test/Transforms/InstCombine/exp2-2.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; Test that the exp2 library call simplifier works correctly.
 ;
 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
@@ -10,8 +11,11 @@ declare float @exp2(double)
 
 define float @test_no_simplify1(i32 %x) {
 ; CHECK-LABEL: @test_no_simplify1(
+; CHECK-NEXT:    [[CONV:%.*]] = sitofp i32 [[X:%.*]] to double
+; CHECK-NEXT:    [[RET:%.*]] = call float @exp2(double [[CONV]])
+; CHECK-NEXT:    ret float [[RET]]
+;
   %conv = sitofp i32 %x to double
   %ret = call float @exp2(double %conv)
-; CHECK: call float @exp2(double %conv)
   ret float %ret
 }


        


More information about the llvm-commits mailing list