public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/45267] [4.5 regression] inlining fails with -m32 Date: Thu, 12 Aug 2010 21:49:00 -0000 [thread overview] Message-ID: <20100812214927.29973.qmail@sourceware.org> (raw) In-Reply-To: <bug-45267-17603@http.gcc.gnu.org/bugzilla/> ------- Comment #7 from rguenth at gcc dot gnu dot org 2010-08-12 21:49 ------- Slightly reduced testcase, fails at -O1 -msse2: typedef int __v4si __attribute__ ((__vector_size__ (16))); typedef long long __m128i __attribute__ ((__vector_size__ (16))); __inline __m128i __attribute__((__always_inline__)) _mm_set1_epi32 (int __A) { } extern __m128i foobar(__m128i, int); __inline __m128i __attribute__((__always_inline__)) _mm_slli_epi32 (__m128i __A, int __B) { return foobar (__A, __B); } template<typename T> class Vector { public: inline Vector(__m128i x) : d(x) { } inline Vector(T a) : d(_mm_set1_epi32(a)) { } inline Vector<T> operator<<(int x) const __attribute__((always_inline)); inline bool operator==(const Vector<T> &x) const { } __m128i d; }; template<> inline Vector<int> Vector<int>::operator<<(int x) const { return _mm_slli_epi32(d, x); } template<typename T1> inline void foo(const T1 &) { } class Fail { }; int main() { Vector<int> a(1); if ((a << 2) == (a << 2)) { foo(a << 2); throw Fail(); } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45267
next prev parent reply other threads:[~2010-08-12 21:49 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-08-12 16:15 [Bug middle-end/45267] New: " kretz at kde dot org 2010-08-12 18:17 ` [Bug middle-end/45267] " rguenth at gcc dot gnu dot org 2010-08-12 19:09 ` hjl dot tools at gmail dot com 2010-08-12 20:17 ` hjl dot tools at gmail dot com 2010-08-12 21:07 ` steven at gcc dot gnu dot org 2010-08-12 21:17 ` kretz at kde dot org 2010-08-12 21:31 ` steven at gcc dot gnu dot org 2010-08-12 21:35 ` rguenth at gcc dot gnu dot org 2010-08-12 21:49 ` rguenth at gcc dot gnu dot org [this message] 2010-08-12 22:08 ` kretz at kde dot org 2010-08-12 22:16 ` [Bug c++/45267] " rguenth at gcc dot gnu dot org 2010-08-30 15:57 ` rguenth at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100812214927.29973.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).