]> granicus.if.org Git - llvm/commitdiff
[InstCombine][NFC] Added comments about constants in tests for pow->exp2 fold
authorDavid Bolvansky <david.bolvansky@gmail.com>
Thu, 8 Aug 2019 22:37:51 +0000 (22:37 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Thu, 8 Aug 2019 22:37:51 +0000 (22:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368360 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/pow-exp.ll
test/Transforms/InstCombine/pow_fp_int.ll

index f352c3a88138d214d1e875914359b2fe294e5b5c..a583c367e4dd1920fcca1c983cedc1690c49c0b8 100644 (file)
@@ -212,6 +212,7 @@ declare void @use_f(float)
 
 define double @pow_ok_base(double %e) {
 ; CHECK-LABEL: @pow_ok_base(
+; Do not change 0xBFE0776{{.*}} to the exact constant, see PR42740
 ; CHECK-NEXT:    [[MUL:%.*]] = fmul nnan ninf afn double [[E:%.*]], 0xBFE0776{{.*}}
 ; CHECK-NEXT:    [[EXP2:%.*]] = call nnan ninf afn double @exp2(double [[MUL]])
 ; CHECK-NEXT:    ret double [[EXP2]]
index b0cb836da94254f25bdd5b555b9eb885d636dbba..582d5d218f7058b564aed190c4b906e5699cea39 100644 (file)
@@ -251,6 +251,7 @@ define double @pow_uitofp_double_base_fast_i32(double %base, i32 %x) {
 define double @pow_sitofp_const_base_fast_i64(i64 %x) {
 ; CHECK-LABEL: @pow_sitofp_const_base_fast_i64(
 ; CHECK-NEXT:    [[SUBFP:%.*]] = sitofp i64 [[X:%.*]] to float
+; Do not change 0x400675{{.*}} to the exact constant, see PR42740
 ; CHECK-NEXT:    [[MUL:%.*]] = fmul fast float [[SUBFP]], 0x400675{{.*}}
 ; CHECK-NEXT:    [[EXP2:%.*]] = call fast float @llvm.exp2.f32(float [[MUL]])
 ; CHECK-NEXT:    [[RES:%.*]] = fpext float [[EXP2]] to double