AaronBallman wrote:

> Should this only apply in C23 mode? Standard behavior until C23 is that 
> `_Float16` promotes to `double`. What about C++?

`_Float16` wasn't standardized until C23; before then it was part of TS 18661, 
but we never claimed conformance to that (that I'm aware of), so I think we 
have the wiggle room to be consistent across language modes. My bigger question 
is: do we codegen properly and what do C standard libraries expect? e.g., if we 
codegen such that we don't promote in older language modes, will this cause 
problems for runtime libraries?

CC @jcranmer-intel for additional opinions

https://github.com/llvm/llvm-project/pull/74439
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to