<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - codegen regression with i386-linux"
   href="https://bugs.llvm.org/show_bug.cgi?id=47278">47278</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>codegen regression with i386-linux
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>11.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andrew@ziglang.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The zig standard library test "PackedIntArray" is regressed with LLVM 11 RC1
and RC2.

The test case is here:
<a href="https://github.com/ziglang/zig/blob/f9bd049c89e4d2b4d3f51a937ec2114c3cac9176/lib/std/packed_int_array.zig#L321">https://github.com/ziglang/zig/blob/f9bd049c89e4d2b4d3f51a937ec2114c3cac9176/lib/std/packed_int_array.zig#L321</a>

In this bug report I will provide a pure LLVM IR reproduction, which you can
run like this:

~/local/llvm10-release/bin/clang-10 -o test test.ll  -nostartfiles
-nodefaultlibs -target i386-unknown-linux-unknown compiler_rt.ll c.ll
-fuse-ld=$HOME/local/llvm10-release/bin/ld.lld -static
./test
echo $?
(prints 0)

~/local/llvm11-release/bin/clang-11 -o test test.ll  -nostartfiles
-nodefaultlibs -target i386-unknown-linux-unknown compiler_rt.ll c.ll
-fuse-ld=$HOME/local/llvm11-release/bin/ld.lld -static
./test
echo $?
(prints 1)</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>