diff mbox

wide-int, vax

Message ID 73407A1E-D2F1-45C6-BE33-7E7B13597C0D@comcast.net
State New
Headers show

Commit Message

Mike Stump Nov. 23, 2013, 7:23 p.m. UTC
Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch.    This patch covers the vax port.

Ok?
* config/vax/vax.c: Include wide-int.h.
	(vax_float_literal): Use real_from_integer.

Comments

Jan-Benedict Glaw Nov. 28, 2013, 6:54 p.m. UTC | #1
On Sat, 2013-11-23 11:23:08 -0800, Mike Stump <mikestump@comcast.net> wrote:
> 	* config/vax/vax.c: Include wide-int.h.
> 	(vax_float_literal): Use real_from_integer.

Looks good to me, but Matt must tell for sure.

MfG, JBG
Matt Thomas Dec. 5, 2013, 1:25 a.m. UTC | #2
On Nov 23, 2013, at 11:23 AM, Mike Stump <mikestump@comcast.net> wrote:

> Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch.    This patch covers the vax port.
> 
> Ok?

OK.
diff mbox

Patch

diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c
index 7aac7cb..90da3b9 100644
--- a/gcc/config/vax/vax.c
+++ b/gcc/config/vax/vax.c
@@ -45,6 +45,7 @@  along with GCC; see the file COPYING3.  If not see
 #include "tm_p.h"
 #include "target.h"
 #include "target-def.h"
+#include "wide-int.h"
 
 static void vax_option_override (void);
 static bool vax_legitimate_address_p (enum machine_mode, rtx, bool);
@@ -645,7 +646,7 @@  vax_float_literal (rtx c)
     {
       int x = 1 << i;
       bool ok;
-      REAL_VALUE_FROM_INT (s, x, 0, mode);
+      real_from_integer (&s, mode, x, SIGNED);
 
       if (REAL_VALUES_EQUAL (r, s))
 	return true;