New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 42740 - Transforms/InstCombine/pow-exp.ll fails on the release_90 branch on Windows
Summary: Transforms/InstCombine/pow-exp.ll fails on the release_90 branch on Windows
Status: RESOLVED FIXED
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: 9.0
Hardware: PC Windows NT
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: release-9.0.0
  Show dependency tree
 
Reported: 2019-07-24 08:56 PDT by Hans Wennborg
Modified: 2019-07-24 13:04 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Wennborg 2019-07-24 08:56:50 PDT
FAIL: LLVM :: Transforms/InstCombine/pow-exp.ll (27424 of 32572)
******************** TEST 'LLVM :: Transforms/InstCombine/pow-exp.ll' FAILED ********************
Script:
--
: 'RUN: at line 2';   c:\src\llvm_package_900-rc1\build32_stage0\bin\opt.exe < C:\src\llvm_package_900-rc1\llvm\test\Transforms\InstCombine\pow-exp.ll -instcombine -S | c:\src\llvm_package_900-rc1\build32_stage0\bin\filecheck.exe C:\src\llvm_package_900-rc1\llvm\test\Transforms\InstCombine\pow-exp.ll
--
Exit Code: 1

Command Output (stdout):
--
$ ":" "RUN: at line 2"
$ "c:\src\llvm_package_900-rc1\build32_stage0\bin\opt.exe" "-instcombine" "-S"
$ "c:\src\llvm_package_900-rc1\build32_stage0\bin\filecheck.exe" "C:\src\llvm_package_900-rc1\llvm\test\Transforms\InstCombine\pow-exp.ll"
# command stderr:
C:\src\llvm_package_900-rc1\llvm\test\Transforms\InstCombine\pow-exp.ll:215:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[MUL:%.*]] = fmul nnan ninf afn double [[E:%.*]], 0xBFE0776228967D13
              ^
<stdin>:118:28: note: scanning from here
define double @pow_ok_base(double %e) {
                           ^
<stdin>:119:2: note: possible intended match here
 %mul = fmul nnan ninf afn double %e, 0xBFE0776228967D12
 ^
C:\src\llvm_package_900-rc1\llvm\test\Transforms\InstCombine\pow-exp.ll:225:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: [[MUL:%.*]] = fmul fast double [[E:%.*]], 0xBFE0776228967D13
              ^
<stdin>:124:33: note: scanning from here
define double @pow_ok_base_fast(double %e) {
                                ^
<stdin>:125:2: note: possible intended match here
 %mul = fmul fast double %e, 0xBFE0776228967D12
 ^

error: command failed with exit status: 1

--

********************
Comment 1 David Bolvansky 2019-07-24 09:14:58 PDT
Ok, https://github.com/llvm-mirror/llvm/commit/d1678ed7a7b3ae90da77701c275f47c34663f394#diff-9c45e00acfb3ebbc1fadeba28b0b5182

it seems std::log2 on Windows produced
0xBFE0776228967D12

On Linux: 0xBFE0776228967D12

I got no warnings from (Windows) build bots, so quite surprising..

I will upload a test fix soon.
Comment 2 David Bolvansky 2019-07-24 09:31:04 PDT
https://reviews.llvm.org/D65220
Comment 3 David Bolvansky 2019-07-24 09:31:47 PDT
>> On Linux: 0xBFE0776228967D12

Ehh.. On Linux: 0xBFE0776228967D13
Comment 4 Hans Wennborg 2019-07-24 13:04:41 PDT
(In reply to David Bolvansky from comment #2)
> https://reviews.llvm.org/D65220

That landed in r366925 and was merged to 9 in r366940.