public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52555] New: [Regression] ICE unrecognizable insn with -ffast-math and __attribute__((optimize(xx)))
@ 2012-03-11  5:24 roman at binarylife dot net
  2012-03-12 12:51 ` [Bug target/52555] [4.6/4.7 Regression] " roman at binarylife dot net
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: roman at binarylife dot net @ 2012-03-11  5:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52555

             Bug #: 52555
           Summary: [Regression] ICE unrecognizable insn with -ffast-math
                    and __attribute__((optimize(xx)))
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: roman@binarylife.net


$ cat test.cpp 
typedef unsigned long value_t;

struct foo {
    static float _factor;
    value_t _val;

    foo()
    :  _val(7)
    {
        _val=__builtin_ceil(_val * _factor);
    }
};

struct bar {
    void operator()(foo&);
};

void
__attribute__((optimize("O")))
test() {
    foo f;
    bar b;
    b(f);
}

int main() {
    test();
}

$ g++ -c -O2 -ffast-math test.cpp
test.cpp: In function ‘void test()’:
test.cpp:24:1: error: unrecognizable insn:
(insn 9 8 10 3 (parallel [
            (set (reg:XF 67)
                (unspec:XF [
                        (reg:XF 68)
                    ] UNSPEC_FRNDINT_CEIL))
            (clobber (reg:CC 17 flags))
        ]) test.cpp:10 -1
     (nil))
test.cpp:24:1: internal compiler error: in extract_insn, at recog.c:2109
Please submit a full bug report,

This happens with x86 and x86_64.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-11-29  6:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-11  5:24 [Bug target/52555] New: [Regression] ICE unrecognizable insn with -ffast-math and __attribute__((optimize(xx))) roman at binarylife dot net
2012-03-12 12:51 ` [Bug target/52555] [4.6/4.7 Regression] " roman at binarylife dot net
2012-03-12 13:24 ` [Bug target/52555] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2012-03-12 17:12 ` ubizjak at gmail dot com
2012-04-13 12:58 ` rguenth at gcc dot gnu.org
2012-08-15 14:02 ` jakub at gcc dot gnu.org
2012-08-15 14:22 ` jakub at gcc dot gnu.org
2012-08-15 14:35 ` hjl.tools at gmail dot com
2013-01-04  3:10 ` pinskia at gcc dot gnu.org
2013-02-07 22:44 ` aldyh at gcc dot gnu.org
2013-02-07 22:44 ` aldyh at gcc dot gnu.org
2013-02-07 23:25 ` aldyh at gcc dot gnu.org
2013-02-09 19:08 ` aldyh at gcc dot gnu.org
2013-02-11  9:01 ` jakub at gcc dot gnu.org
2013-02-19  0:05 ` aldyh at gcc dot gnu.org
2013-02-19  0:14 ` aldyh at gcc dot gnu.org
2013-02-24 18:55 ` jakub at gcc dot gnu.org
2021-11-29  6:47 ` pinskia at gcc dot gnu.org

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).