public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/25554]  New: [4.0 Regression] unrecognizable insn on x86_64 with -O2 -ftracer
@ 2005-12-24  4:26 halcy0n at gentoo dot org
  2005-12-24  4:38 ` [Bug tree-optimization/25554] [3.4/4.0/4.1/4.2 Regression] unrecognizable insn on x86_64 with -O2 -ftracer ( -fno-tree-dominator-opts on the mainline) pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: halcy0n at gentoo dot org @ 2005-12-24  4:26 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2444 bytes --]

When compiling the supplied test case with `gcc -c -O2 -ftracer test.c` with
gcc-4.0.3 the following error occurs:

test.c: In function ‘mpfr_pow_ui’:
test.c:18: error: unrecognizable insn:
(insn 96 44 46 6 (set (reg:CCZ 17 flags)
        (compare:CCZ (and:DI (reg/v:DI 66 [ n ])
                (const_int 4611686018427387904 [0x4000000000000000]))
            (const_int 0 [0x0]))) -1 (nil)
    (expr_list:REG_DEAD (reg/v:DI 66 [ n ])
        (nil)))
test.c:18: internal compiler error: in extract_insn, at recog.c:2020


This does not occur in 3.4, 4.1, or 4.2.  Revision 98597 on gcc-4_1-branch
seems to be where it was fixed for 4.1.  Here is the testcase I am using:

unsigned int __gmpfr_flags;                                                     

int                                                                             
mpfr_pow_ui (unsigned long int n)                                               
{                                                                               
  unsigned long m;                                                              
  int inexact;                                                                  

  int i;                                                                        
  for (m = n, i = 0; m; i++, m >>= 1)                                           
    ;                                                                           

  ((void) (__gmpfr_flags &= 31 ^ 1));                                           

  if (n & (1UL << (i-2)))                                                       
    return 0;                                                                   

}

Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4/configure --prefix=/home/halcy0n/gcc-test/bin-4/
--enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 4.0.3 20051222 (prerelease)


-- 
           Summary: [4.0 Regression] unrecognizable insn on x86_64 with -O2
                    -ftracer
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: halcy0n at gentoo dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

end of thread, other threads:[~2006-03-01  5:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-24  4:26 [Bug tree-optimization/25554] New: [4.0 Regression] unrecognizable insn on x86_64 with -O2 -ftracer halcy0n at gentoo dot org
2005-12-24  4:38 ` [Bug tree-optimization/25554] [3.4/4.0/4.1/4.2 Regression] unrecognizable insn on x86_64 with -O2 -ftracer ( -fno-tree-dominator-opts on the mainline) pinskia at gcc dot gnu dot org
2005-12-28 16:04 ` jakub at gcc dot gnu dot org
2006-01-04  8:15 ` [Bug target/25554] " jakub at gcc dot gnu dot org
2006-01-04  9:17 ` jakub at gcc dot gnu dot org
2006-01-04 12:29 ` jakub at gcc dot gnu dot org
2006-01-04 12:34 ` jakub at gcc dot gnu dot org
2006-03-01  5:04 ` [Bug target/25554] [3.4 " gdr at gcc dot gnu dot 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).