[TESTCASE] Minimized testcase for AltiVec segfault

Aldy Hernandez aldyh@redhat.com
Wed Feb 27 22:59:00 GMT 2002


>>>>> "Alex" == Alex Rosenberg <alexr@spies.com> writes:

 > void entrypoint(...)
 > {
 > #pragma altivec_vrsave allon
 >   do_work();
 > }
 > ..

Well if you're going to do that, why not wrap the entire
program in:

main()
{
	asm("set all vrsave bits to on");
	do stuff
	asm("set all vrsave bits to off");
}

aldy



More information about the Gcc mailing list