Displaying 2 results from an estimated 2 matches for "floatenv".
Did you mean:
floated
2020 May 27
4
default behavior or
Hi Devs,
going by this link https://llvm.org/docs/LangRef.html#floatenv
it says that floating point operation does not have side effects by
defaults.
but when compile a test case
i.e.
cat a.c
float foo(float a, float b)
{
return a+b;
}
$clang a.c -O2 -S -emit-llvm
emit ir like:
$cat a.ll
---------------------------------------
; ModuleID = 'a.c'
source_filenam...
2020 May 27
2
By default clang does not emit trap insn
...On Tue, May 26, 2020 at 10:39 PM kamlesh kumar via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
>
>
> On Wed, May 27, 2020 at 11:06 AM kamlesh kumar <kamleshbhalui at gmail.com>
> wrote:
>
>> Hi Devs,
>> going by this link https://llvm.org/docs/LangRef.html#floatenv
>> it says that floating point operation does not have side effects by
>> defaults.
>> but when compile a test case
>> i.e.
>> cat a.c
>> float foo(float a, float b)
>> {
>> return a+b;
>> }
>>
>> $clang a.c -O2 -S -emit-llvm
>>...