public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/37269]  New: extract_bit_field_1 doesn't handle vector mode properly
@ 2008-08-28 21:01 hjl dot tools at gmail dot com
  2008-08-28 21:04 ` [Bug middle-end/37269] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-28 21:01 UTC (permalink / raw)
  To: gcc-bugs

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

[hjl@gnu-6 vararg-2]$ cat x.i
__attribute__ ((vector_size (8))) signed char v4, v5, v6;
void
two (void)
{
  v4 = v5 + v6;
}
[hjl@gnu-6 vararg-2]$ make x.s
/export/build/gnu/gcc-work/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-work/build-x86_64-linux/gcc/ -mavx -m32 -S x.i
x.i: In function ‘two’:
x.i:6: internal compiler error: in gen_lowpart_general, at rtlhooks.c:51
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [x.s] Error 1
[hjl@gnu-6 vararg-2]$ 
Starting program: /export/build/gnu/gcc-work/build-x86_64-linux/gcc/cc1
-fpreprocessed x.i -quiet -dumpbase x.i -mavx -m32 -mtune=generic -auxbase x
-version -o x.s
GNU C (GCC) version 4.4.0 20080828 (experimental) [trunk revision 139730]
(x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.3.0 20080428 (Red Hat 4.3.0-8), GMP version
4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 86b79a008cee0f5fea850c16d9990a89

Breakpoint 1, fancy_abort (
    file=0xf56328 "/export/gnu/src/gcc-work/gcc/gcc/rtlhooks.c", line=51, 
    function=0xf56310 "gen_lowpart_general")
    at /export/gnu/src/gcc-work/gcc/gcc/diagnostic.c:699
699       internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) f 2
#2  0x00000000005e3e1f in extract_bit_field_1 (str_rtx=0x7ffff3286140, 
    bitsize=32, bitnum=0, unsignedp=1, target=0x7ffff32860e0, mode=SImode, 
    tmode=SImode, fallback_p=1 '\001')
    at /export/gnu/src/gcc-work/gcc/gcc/expmed.c:1205
1205            op0 = gen_lowpart (new_mode, op0);
(gdb) call debug_rtx (str_rtx)
(reg:V8QI 78 [ v5.0 ])
(gdb) p new_mode
$1 = V8SImode
(gdb) call debug_rtx (op0)
(reg:V8QI 78 [ v5.0 ])
(gdb) 

AVX happens to have V8SImode. But there is no subreg of V8SImode
from V8QImode.


-- 
           Summary: extract_bit_field_1 doesn't handle vector mode properly
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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


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

* [Bug middle-end/37269] extract_bit_field_1 doesn't handle vector mode properly
  2008-08-28 21:01 [Bug middle-end/37269] New: extract_bit_field_1 doesn't handle vector mode properly hjl dot tools at gmail dot com
@ 2008-08-28 21:04 ` pinskia at gcc dot gnu dot org
  2008-08-28 21:14 ` hjl dot tools at gmail dot com
  2008-08-28 21:51 ` hjl dot tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-28 21:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-08-28 21:03 -------
What happens if you try the patch in PR 36444 comment #1.


-- 


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


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

* [Bug middle-end/37269] extract_bit_field_1 doesn't handle vector mode properly
  2008-08-28 21:01 [Bug middle-end/37269] New: extract_bit_field_1 doesn't handle vector mode properly hjl dot tools at gmail dot com
  2008-08-28 21:04 ` [Bug middle-end/37269] " pinskia at gcc dot gnu dot org
@ 2008-08-28 21:14 ` hjl dot tools at gmail dot com
  2008-08-28 21:51 ` hjl dot tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-28 21:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2008-08-28 21:13 -------
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2008-08/msg02197.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |08/msg02197.html


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


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

* [Bug middle-end/37269] extract_bit_field_1 doesn't handle vector mode properly
  2008-08-28 21:01 [Bug middle-end/37269] New: extract_bit_field_1 doesn't handle vector mode properly hjl dot tools at gmail dot com
  2008-08-28 21:04 ` [Bug middle-end/37269] " pinskia at gcc dot gnu dot org
  2008-08-28 21:14 ` hjl dot tools at gmail dot com
@ 2008-08-28 21:51 ` hjl dot tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-28 21:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl dot tools at gmail dot com  2008-08-28 21:49 -------


*** This bug has been marked as a duplicate of 36444 ***


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-08-28 21:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-28 21:01 [Bug middle-end/37269] New: extract_bit_field_1 doesn't handle vector mode properly hjl dot tools at gmail dot com
2008-08-28 21:04 ` [Bug middle-end/37269] " pinskia at gcc dot gnu dot org
2008-08-28 21:14 ` hjl dot tools at gmail dot com
2008-08-28 21:51 ` hjl dot tools at gmail dot com

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