Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

char from large FP value not raise 'invalid' #51541

Open Quuxplusone opened 2 years ago

Quuxplusone commented 2 years ago
Bugzilla Link PR52574
Status NEW
Importance P normal
Reported by Fred J. Tydeman (tydeman@tybor.com)
Reported on 2021-11-21 08:17:11 -0800
Last modified on 2021-11-21 08:17:11 -0800
Version 12.0
Hardware All All
CC blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Conversions of large floating-point (FP) values to many integer types does not
raise FP_INVALID as required by IEEE-754 and Annex F in C standard.

Sample code can be found at:
  http://www.tybor.com/tflt2int.c

The problem exists on (at least) both ARM and Intel x86/x87/sse