[Libre-soc-bugs] [Bug 558] gcc SV intrinsics concept

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Jan 12 07:12:07 GMT 2021


https://bugs.libre-soc.org/show_bug.cgi?id=558

--- Comment #50 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #49)
> (In reply to Jacob Lifshay from comment #48)
> > This would require compiling code that uses SV in C++ mode, which shouldn't
> > be that difficult to achieve.
> 
> ... it has some subtle implications.
yup.

> c code compiled with g++ fails when -1
> is placed into a uint, rather than just going, "oh you must have meant
> 0xffffffff i'll just take care of that for you".

That's not correct:
https://gcc.godbolt.org/z/n1vKEM

> have to ask Lauri if he's ok with it.

hope so, since it shouldn't be that hard to use... also, reading the source to
see exactly which instructions are generated and/or adding new ones should be
very easy compared to having to read through gcc's internals.

> i can see it still being valuable though.

+1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list