libfirm / cparser

C99 parser and frontend for libfirm
http://pp.ipd.kit.edu/firm
GNU General Public License v2.0
336 stars 38 forks source link

[AMD64] cparser fails to compile some long double code #44

Open GabrielRavier opened 4 years ago

GabrielRavier commented 4 years ago
double g(double);

void f(long double x, long double y)
{
    g(y < 0 ? x : y) != g(y < 0 ? x : y);
}

cparser outputs this :

/tmp/fMysSN/a-0.s: Assembler messages:
/tmp/fMysSN/a-0.s:38: Error: invalid instruction suffix for `push'
/tmp/fMysSN/a-0.s:40: Error: invalid instruction suffix for `pop'
/tmp/fMysSN/a-0.s: error: assembler reported an error
1 error(s), 2 warning(s)