Report error on NaN comparison
commite0e9a2a29562ac0f07c5d29070e1797fa48b144f
authorThomas Preud'homme <robotux@celest.fr>
Tue, 31 Dec 2013 15:40:21 +0000 (31 23:40 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Fri, 3 Jan 2014 02:19:38 +0000 (3 10:19 +0800)
treef0ef686163ef61eb5a0df8c7aa4ed119f193d5f5
parent59b8007f98eb814f6fd19455ab868ecaa07dfc0d
Report error on NaN comparison

Use comisd / fcompp for float comparison (except TOK_EQ and TOK_NE)
instead of ucomisd / fucompp to detect NaN comparison.

Thanks Vincent Lefèvre for the bug report and for also giving the
solution.
i386-gen.c
x86_64-gen.c