Skip to content
Snippets Groups Projects
Commit cd2449aa authored by xleroy's avatar xleroy
Browse files

Fixed unary minus

git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@944 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
parent 33a2f642
No related branches found
No related tags found
No related merge requests found
......@@ -454,7 +454,7 @@ expr:
| FLOATLIT { Rconst(Ofloatconst $1) }
| STRINGLIT { Rconst(Oaddrsymbol($1, Int.zero)) }
| AMPERSAND INTLIT { Rconst(Oaddrstack(coqint_of_camlint $2)) }
| MINUS expr %prec p_uminus { Rbinop(Osub, intconst 0l, $2) } /***FIXME***/
| MINUS expr %prec p_uminus { Runop(Onegint, $2) }
| MINUSF expr %prec p_uminus { Runop(Onegf, $2) }
| ABSF expr { Runop(Oabsf, $2) }
| INTOFFLOAT expr { Runop(Ointoffloat, $2) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment