[llvm-bugs] [Bug 33017] New: compile ok yet ud2 op emitted in x64 assembly and codegen stopped

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 12 00:52:26 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33017

            Bug ID: 33017
           Summary: compile ok yet ud2 op emitted in x64 assembly and
                    codegen stopped
           Product: new-bugs
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: joriswu at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18433
  --> https://bugs.llvm.org/attachment.cgi?id=18433&action=edit
asm output

c11 source compiles without diags, yet executable halts at sigill. Asembly
output reveals an 'ud2' opcode halfway the code, and further code generation is
omitted.

This source file compiled ok with a previous 'trunk' version from 10 March
2017.
After changing the source, this error appeared.

Installed clang release 4.0, and the same error appears.

compiled as :
clang -S -O2 -march=native -Weverything -g -pthread -std=c11 compound.c

offending ud2 is at attached compound.s line 7362, corresponding to compound.c
line 757. From next line compound.c:758 onwards until end of loop is absent in
generated code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170512/e58ba443/attachment.html>


More information about the llvm-bugs mailing list