This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

altivec very broken


hi daniel.

with your last set of patches it seems that altivec is completely
broken.  none of my sample *simple* programs work.

they don't work with either amode() or vector_size() attributes.

can you take a look at this?

-- 
Aldy Hernandez			E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.

litecycle:/build/t2/gcc$ cat a.c
int __attribute__((mode(V4SI))) x, y;

hotdog(){
        __builtin_altivec_vmadduwm (x, y);

}
litecycle:/build/t2/gcc$ ./cc1 a.c -maltivec -quiet
a.c: In function `hotdog':
a.c:4: Internal compiler error in emit_move_insn, at expr.c:2729
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
litecycle:/build/t2/gcc$ 
litecycle:/build/t2/gcc$ 
litecycle:/build/t2/gcc$ cat b.c
#define vector __attribute__((vector_size(16)))

vector int x, y;

hotdog(){
        __builtin_altivec_vmadduwm (x, y);

} 
litecycle:/build/t2/gcc$ ./cc1 b.c -maltivec -quiet
b.c: In function `hotdog':
b.c:8: insn does not satisfy its constraints:
(insn 34 31 15 (set (reg:V4SI 3 r3)
        (mem:V4SI (reg:SI 10 r10) [0 S16 A32])) 524 {altivec_lvx_4si} (nil)
    (nil))
b.c:8: Internal compiler error in final_scan_insn, at final.c:2576
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
litecycle:/build/t2/gcc$ 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]