<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:hans@chromium.org" title="Hans Wennborg <hans@chromium.org>"> <span class="fn">Hans Wennborg</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [CodeGenPrepare] Store splitting creates invalid alignments on big-endian targets, and under-aligned stores on all targets"
   href="https://bugs.llvm.org/show_bug.cgi?id=44877">bug 44877</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [CodeGenPrepare] Store splitting creates invalid alignments on big-endian targets, and under-aligned stores on all targets"
   href="https://bugs.llvm.org/show_bug.cgi?id=44877#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [CodeGenPrepare] Store splitting creates invalid alignments on big-endian targets, and under-aligned stores on all targets"
   href="https://bugs.llvm.org/show_bug.cgi?id=44877">bug 44877</a>
              from <span class="vcard"><a class="email" href="mailto:hans@chromium.org" title="Hans Wennborg <hans@chromium.org>"> <span class="fn">Hans Wennborg</span></a>
</span></b>
        <pre>That's strange. The test passes on my machine, and the output of the first run
line looks like this:

$ /work/llvm.monorepo.rel/build.release/bin/opt -S -codegenprepare
-mtriple=powerpc64-unknown-linux-gnu -data-layout="E-m:e-i64:64-n32:64"
-force-split-store <
/work/llvm.monorepo.rel/llvm/test/Transforms/CodeGenPrepare/PowerPC/split-store-alignment.ll
| head -19
; ModuleID = '<stdin>'
source_filename = "<stdin>"
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"

define void @split_store_align1(float %x, i64* %p) {
  %b = bitcast float %x to i32
  %z = zext i32 0 to i64
  %s = shl nuw nsw i64 %z, 32
  %z2 = zext i32 %b to i64
  %o = or i64 %s, %z2
  %1 = bitcast i64* %p to i32*
  %2 = getelementptr i32, i32* %1, i32 1
  store i32 %b, i32* %2, align 1
  %3 = bitcast i64* %p to i32*
  store i32 0, i32* %3, align 1
  ret void
}


Could it be due to a difference in host architecture or build configuration or
something?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>