[LLVMbugs] [Bug 21301] New: illegal instruction generated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 16 12:46:35 PDT 2014


            Bug ID: 21301
           Summary: illegal instruction generated
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nathanael.schaeffer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When compiled with -march=native, clang 3.5 generates instruction "pextrb"
which is part of sse4.1, while my cpu does not support this instruction set.
Running the executable leads to:
  Program received signal SIGILL, Illegal instruction.

Here are selected lines from /proc/cpuinfo :

processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 37
model name    : Intel(R) Pentium(R) CPU        U5400  @ 1.20GHz
stepping    : 5
microcode    : 0x2
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rd
tscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc
aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm pcid p
opcnt lahf_lm arat dtherm


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/20141016/373faa7f/attachment.html>

More information about the llvm-bugs mailing list