> Le 19 oct. 2023 à 21:39, Oleg Nesterov <o...@redhat.com> a écrit :
> 
> On 10/19, Stéphane Letz wrote:
>> 
>> Fixed in just pushed 2.68.5
> 
> looks like the commit 637b63bfdfa1f6b33e38 does the trick, thanks! ;)
> 
> but... could you help please? I have never looked into the tests/
> directory and I am puzzled.
> 
> This commit adds the new tests/impulse-tests/dsp/math_simp.dsp file, could
> you please explain how can I use this new test-case to check if the faust
> compiler simplifies the code correctly?
> 
> I see that the next commit adds
> 
>       tests/impulse-tests/reference/math_simp.ir
> 
> but I guess it can only help to ensure that the output is correct ?
> I mean, it can't help to ensure that, for example,
> 
>       process(x) = -x;
> 
> doesn't compile to something like
> 
>       output0[i0] = FAUSTFLOAT(-1.0f * float(input0[i0]));
> 
> right?
> 
> Oleg.
> 

Right, the faust/tests/impulse-tests/dsp files are compiled in C++ then run to 
produce reference files, that are checked with all backends. So we test the 
backend behaviour, not the generated code by itself. 

Stéphane 



_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to