New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 13000 - LLVM ERROR: Cannot select: intrinsic %llvm.x86.ssse3.pmadd.ub.sw.128 on AMD CPU (Firefox LTO build)
Summary: LLVM ERROR: Cannot select: intrinsic %llvm.x86.ssse3.pmadd.ub.sw.128 on AMD C...
Status: RESOLVED INVALID
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-31 15:31 PDT by octoploid
Modified: 2012-06-01 02:46 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description octoploid 2012-05-31 15:31:27 PDT
During the final libxul link of an Firefox LTO build I get:

LLVM ERROR: Cannot select: intrinsic %llvm.x86.ssse3.pmadd.ub.sw.128

This happens on an AMD Phenom II CPU that doesn't support ssse3.
I'm using -march=native in the CXXFLAGS (-target-cpu amdfam10).
A non-LTO build is fine.
Comment 1 Craig Topper 2012-05-31 23:48:43 PDT
I'm pretty sure there's no way to get that intrinsic into code without using a builtin in the C/C++ source. LLVM won't insert it by itself. Do you have any additional information?
Comment 2 octoploid 2012-06-01 02:46:49 PDT
(In reply to comment #1)
> I'm pretty sure there's no way to get that intrinsic into code without using a
> builtin in the C/C++ source. LLVM won't insert it by itself.

You're right. See https://bugzilla.mozilla.org/show_bug.cgi?id=759683