[llvm] r368360 - [InstCombine][NFC] Added comments about constants in tests for pow->exp2 fold
David Bolvansky via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 15:37:51 PDT 2019
Author: xbolva00
Date: Thu Aug 8 15:37:51 2019
New Revision: 368360
URL: http://llvm.org/viewvc/llvm-project?rev=368360&view=rev
Log:
[InstCombine][NFC] Added comments about constants in tests for pow->exp2 fold
Modified:
llvm/trunk/test/Transforms/InstCombine/pow-exp.ll
llvm/trunk/test/Transforms/InstCombine/pow_fp_int.ll
Modified: llvm/trunk/test/Transforms/InstCombine/pow-exp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/pow-exp.ll?rev=368360&r1=368359&r2=368360&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/pow-exp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/pow-exp.ll Thu Aug 8 15:37:51 2019
@@ -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]]
Modified: llvm/trunk/test/Transforms/InstCombine/pow_fp_int.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/pow_fp_int.ll?rev=368360&r1=368359&r2=368360&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/pow_fp_int.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/pow_fp_int.ll Thu Aug 8 15:37:51 2019
@@ -251,6 +251,7 @@ define double @pow_uitofp_double_base_fa
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
More information about the llvm-commits
mailing list