diff mbox

[FFmpeg-devel,2/2] postproc/postprocess_template: remove FF_REG_sp from clobber list

Message ID 20181220214006.30788-2-michael@niedermayer.cc
State Accepted
Commit c1cbeb87db4bfc6e281e4254a6c7fdd3854fc9b9
Headers show

Commit Message

Michael Niedermayer Dec. 20, 2018, 9:40 p.m. UTC
Future gcc may no longer support this

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libpostproc/postprocess_template.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Almer Dec. 20, 2018, 9:54 p.m. UTC | #1
On 12/20/2018 6:40 PM, Michael Niedermayer wrote:
> Future gcc may no longer support this
> 
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libpostproc/postprocess_template.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
> index 485eb5cfc0..b0adfd168c 100644
> --- a/libpostproc/postprocess_template.c
> +++ b/libpostproc/postprocess_template.c
> @@ -1317,7 +1317,7 @@ DERING_CORE((%0, %1, 8)       ,(%%FF_REGd, %1, 4),%%mm2,%%mm4,%%mm0,%%mm3,%%mm5,
>          "1:                        \n\t"
>          : : "r" (src), "r" ((x86_reg)stride), "m" (c->pQPb), "m"(c->pQPb2), "q"(tmp)
>            NAMED_CONSTRAINTS_ADD(deringThreshold,b00,b02,b08)
> -        : "%"FF_REG_a, "%"FF_REG_d, "%"FF_REG_sp
> +        : "%"FF_REG_a, "%"FF_REG_d
>      );
>  #else // HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
>      int y;

The set compiles with gcc 9 now, so LGTM if tested. Should be backported
to supported releases as well.

Thanks.
Michael Niedermayer Dec. 20, 2018, 11:56 p.m. UTC | #2
On Thu, Dec 20, 2018 at 06:54:12PM -0300, James Almer wrote:
> On 12/20/2018 6:40 PM, Michael Niedermayer wrote:
> > Future gcc may no longer support this
> > 
> > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> > ---
> >  libpostproc/postprocess_template.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
> > index 485eb5cfc0..b0adfd168c 100644
> > --- a/libpostproc/postprocess_template.c
> > +++ b/libpostproc/postprocess_template.c
> > @@ -1317,7 +1317,7 @@ DERING_CORE((%0, %1, 8)       ,(%%FF_REGd, %1, 4),%%mm2,%%mm4,%%mm0,%%mm3,%%mm5,
> >          "1:                        \n\t"
> >          : : "r" (src), "r" ((x86_reg)stride), "m" (c->pQPb), "m"(c->pQPb2), "q"(tmp)
> >            NAMED_CONSTRAINTS_ADD(deringThreshold,b00,b02,b08)
> > -        : "%"FF_REG_a, "%"FF_REG_d, "%"FF_REG_sp
> > +        : "%"FF_REG_a, "%"FF_REG_d
> >      );
> >  #else // HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
> >      int y;
> 
> The set compiles with gcc 9 now, so LGTM if tested. Should be backported
> to supported releases as well.

ive tested it locally on x86 32&64 but not with gcc 9, it would be ideal
if someone tests this with gcc 9 beyond compilation

this should use the code, the "31" can be varied to test different "strength"
-vf 'pp=de/fq|31'

thx

[...]
James Almer Dec. 21, 2018, 1:04 a.m. UTC | #3
On 12/20/2018 8:56 PM, Michael Niedermayer wrote:
> On Thu, Dec 20, 2018 at 06:54:12PM -0300, James Almer wrote:
>> On 12/20/2018 6:40 PM, Michael Niedermayer wrote:
>>> Future gcc may no longer support this
>>>
>>> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
>>> ---
>>>  libpostproc/postprocess_template.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
>>> index 485eb5cfc0..b0adfd168c 100644
>>> --- a/libpostproc/postprocess_template.c
>>> +++ b/libpostproc/postprocess_template.c
>>> @@ -1317,7 +1317,7 @@ DERING_CORE((%0, %1, 8)       ,(%%FF_REGd, %1, 4),%%mm2,%%mm4,%%mm0,%%mm3,%%mm5,
>>>          "1:                        \n\t"
>>>          : : "r" (src), "r" ((x86_reg)stride), "m" (c->pQPb), "m"(c->pQPb2), "q"(tmp)
>>>            NAMED_CONSTRAINTS_ADD(deringThreshold,b00,b02,b08)
>>> -        : "%"FF_REG_a, "%"FF_REG_d, "%"FF_REG_sp
>>> +        : "%"FF_REG_a, "%"FF_REG_d
>>>      );
>>>  #else // HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
>>>      int y;
>>
>> The set compiles with gcc 9 now, so LGTM if tested. Should be backported
>> to supported releases as well.
> 
> ive tested it locally on x86 32&64 but not with gcc 9, it would be ideal
> if someone tests this with gcc 9 beyond compilation
> 
> this should use the code, the "31" can be varied to test different "strength"
> -vf 'pp=de/fq|31'
> 
> thx

Tested it with gcc 9. Doesn't crash and the output is bitexact to what i
get with gcc 8.
Michael Niedermayer Dec. 22, 2018, 7:49 p.m. UTC | #4
On Thu, Dec 20, 2018 at 10:04:21PM -0300, James Almer wrote:
> On 12/20/2018 8:56 PM, Michael Niedermayer wrote:
> > On Thu, Dec 20, 2018 at 06:54:12PM -0300, James Almer wrote:
> >> On 12/20/2018 6:40 PM, Michael Niedermayer wrote:
> >>> Future gcc may no longer support this
> >>>
> >>> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> >>> ---
> >>>  libpostproc/postprocess_template.c | 2 +-
> >>>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
> >>> index 485eb5cfc0..b0adfd168c 100644
> >>> --- a/libpostproc/postprocess_template.c
> >>> +++ b/libpostproc/postprocess_template.c
> >>> @@ -1317,7 +1317,7 @@ DERING_CORE((%0, %1, 8)       ,(%%FF_REGd, %1, 4),%%mm2,%%mm4,%%mm0,%%mm3,%%mm5,
> >>>          "1:                        \n\t"
> >>>          : : "r" (src), "r" ((x86_reg)stride), "m" (c->pQPb), "m"(c->pQPb2), "q"(tmp)
> >>>            NAMED_CONSTRAINTS_ADD(deringThreshold,b00,b02,b08)
> >>> -        : "%"FF_REG_a, "%"FF_REG_d, "%"FF_REG_sp
> >>> +        : "%"FF_REG_a, "%"FF_REG_d
> >>>      );
> >>>  #else // HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
> >>>      int y;
> >>
> >> The set compiles with gcc 9 now, so LGTM if tested. Should be backported
> >> to supported releases as well.
> > 
> > ive tested it locally on x86 32&64 but not with gcc 9, it would be ideal
> > if someone tests this with gcc 9 beyond compilation
> > 
> > this should use the code, the "31" can be varied to test different "strength"
> > -vf 'pp=de/fq|31'
> > 
> > thx
> 
> Tested it with gcc 9. Doesn't crash and the output is bitexact to what i
> get with gcc 8.

applied

thx
diff mbox

Patch

diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c
index 485eb5cfc0..b0adfd168c 100644
--- a/libpostproc/postprocess_template.c
+++ b/libpostproc/postprocess_template.c
@@ -1317,7 +1317,7 @@  DERING_CORE((%0, %1, 8)       ,(%%FF_REGd, %1, 4),%%mm2,%%mm4,%%mm0,%%mm3,%%mm5,
         "1:                        \n\t"
         : : "r" (src), "r" ((x86_reg)stride), "m" (c->pQPb), "m"(c->pQPb2), "q"(tmp)
           NAMED_CONSTRAINTS_ADD(deringThreshold,b00,b02,b08)
-        : "%"FF_REG_a, "%"FF_REG_d, "%"FF_REG_sp
+        : "%"FF_REG_a, "%"FF_REG_d
     );
 #else // HAVE_7REGS && (TEMPLATE_PP_MMXEXT || TEMPLATE_PP_3DNOW)
     int y;