From: David Bolvansky Date: Thu, 8 Aug 2019 22:37:51 +0000 (+0000) Subject: [InstCombine][NFC] Added comments about constants in tests for pow->exp2 fold X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4587973c3e6fe5997bb00bec586081ac72bb5061;p=llvm [InstCombine][NFC] Added comments about constants in tests for pow->exp2 fold git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368360 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/pow-exp.ll b/test/Transforms/InstCombine/pow-exp.ll index f352c3a8813..a583c367e4d 100644 --- a/test/Transforms/InstCombine/pow-exp.ll +++ b/test/Transforms/InstCombine/pow-exp.ll @@ -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]] diff --git a/test/Transforms/InstCombine/pow_fp_int.ll b/test/Transforms/InstCombine/pow_fp_int.ll index b0cb836da94..582d5d218f7 100644 --- a/test/Transforms/InstCombine/pow_fp_int.ll +++ b/test/Transforms/InstCombine/pow_fp_int.ll @@ -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