This is the mail archive of the gcc-bugs@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]

[Bug regression/32582] Bootstrap with vectorization enabled fails with ICE on PPC



------- Comment #6 from rakdver at gcc dot gnu dot org  2007-07-26 12:09 -------
rs6000_conditional_register_usage ();
memset (&reg_class_size, 0, 84);

gets compiled to

vxor    v0,v0,v0
...
bl      0x104f0c68 <rs6000_conditional_register_usage>
...
stvx    v0,r0,r9
addi    r9,r11,32
stw     r0,80(r11)
stvx    v0,r0,r11
addi    r11,r11,48
stvx    v0,r0,r27
stvx    v0,r0,r9
stvx    v0,r0,r11

The value of v0 gets changed inside rs6000_conditional_register_usage (some
loop gets vectorized there and v0 is used), so we are not setting
reg_class_size to zero, but to some random value.

I am not familiar with ppc abi -- is v0 call clobbered?


-- 


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


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