[MPlayer-users] [PATCH] Seg fault in YSCALEYUV2YV12X called from yuv2yuvX doing vertical rescaling
Michael Niedermayer
michaelni at gmx.at
Sat May 25 02:28:02 CEST 2002
Hi
On Friday 24 May 2002 23:01, Arpi wrote:
[...]
> hmm. could you make a small test program to detect this kind of gcc bug?
difficult, i dont have 2.95.2 installed
but i attached something, dunno if it works
> we could include it in ./configure to check if the gcc is working or not.
> i'm planning to disallow 2.95.2, just like 2.97-1, but it seems there is
> 2.95.3 version with the bugs of 2.95.2 ?
>
> > anyway i attached a patch, this will slow things down a tiny bit and
>
> tiny? how much?
less than 0.1% i guess
Michael
[...]
Michael
-------------- next part --------------
volatile int out=1;
volatile int a=2;
volatile int b=4;
volatile int c=8;
volatile int d=16;
int main(){
int err=0;
asm volatile(
"xorl %%eax, %%eax \n\t"
"xorl %%esi, %%esi \n\t"
"xorl %%edx, %%edx \n\t"
"addl %1, %0 \n\t"
"addl %2, %0 \n\t"
"addl %3, %0 \n\t"
"addl %4, %0 \n\t"
:"+r" (out)
: "m" (a), "r" (b), "r" (c), "m" (d)
: "%eax", "%edx", "%esi"
);
if(out==31){
printf("test1: ok\n");
}else{
printf("test1: fail %d\n", 31-out);
err++;
}
return err;
}
More information about the MPlayer-users
mailing list