<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - AVX issues / 'X86 DAG->DAG Instruction Selection' / core dumped"
   href="http://llvm.org/bugs/show_bug.cgi?id=16324">16324</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AVX issues / 'X86 DAG->DAG Instruction Selection' / core dumped
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>namor_t140101@hemio.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre># issue, same with llvm 3.2 and 3.4 (shown below)
[bulldozer] ~/np/proj/largewords> llc largewords.ll
Stack dump:
0.      Program arguments: llc largewords.ll 
1.      Running pass 'Function Pass Manager' on module 'largewords.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
Bus error (core dumped)

# source file to reproduce:
[bulldozer] ~/np/proj/largewords> cat largewords.ll
define i32 @main(i32 %argc, i8** %argv)
{
        %1 = zext i32 %argc to i256
        %2 = mul i256 123987129387892374987129837, %1
        %3 = add i256 5444517870735015415413993718908291383296, %2
        %4 = trunc i256 %3 to i32
        ret i32 %4
}

# rest is system information, attached is a the core file
[bulldozer] ~/np/proj/largewords> uname -a
FreeBSD bulldozer.local 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29
18:27:25 UTC 2013    
<a href="mailto:root@amd64-builder.daemonology.net">root@amd64-builder.daemonology.net</a>:/usr/obj/usr/src/sys/GENERIC  amd64
[bulldozer] ~/np/proj/largewords> llc --version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
  LLVM version 3.4svn
  Optimized build.
  Built Jun  1 2013 (09:33:05).
  Default target: amd64-portbld-freebsd9.1
  Host CPU: bdver1

  Registered Targets:
    aarch64  - AArch64
    arm      - ARM
    cpp      - C++ backend
    hexagon  - Hexagon
    mblaze   - MBlaze
    mips     - Mips
    mips64   - Mips64 [experimental]
    mips64el - Mips64el [experimental]
    mipsel   - Mipsel
    msp430   - MSP430 [experimental]
    nvptx    - NVIDIA PTX 32-bit
    nvptx64  - NVIDIA PTX 64-bit
    ppc32    - PowerPC 32
    ppc64    - PowerPC 64
    sparc    - Sparc
    sparcv9  - Sparc V9
    systemz  - SystemZ
    thumb    - Thumb
    x86      - 32-bit X86: Pentium-Pro and above
    x86-64   - 64-bit X86: EM64T and AMD64
    xcore    - XCore</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>