Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2002 11:20:08 -0700 (PDT)
From:      Thomas Moestl <tmm@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10406 for review
Message-ID:  <200204281820.g3SIK8x15222@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10406

Change 10406 by tmm@tmm_sparc64 on 2002/04/28 11:19:17

	Add a support macro to convert the 5-bit packed register field of
	a floating point instruction into a 6-bit register number for
	double and quad arguments.

Affected files ...

... //depot/projects/sparc64/sys/sparc64/include/instr.h#8 edit

Differences ...

==== //depot/projects/sparc64/sys/sparc64/include/instr.h#8 (text+ko) ====

@@ -459,6 +459,9 @@
 #define	INSFP2_FCMP		0x050	/* s, d, q */
 #define	INSFP2_FCMPE		0x054	/* s, d, q */
 
+/* Decode 5-bit register field into 6-bit number (for doubles and quads). */
+#define	INSFPdq_RN(rn)		(((rn) & ~1) | (((rn) & 1) << 5))
+
 /* IMPLDEP1 for Sun UltraSparc */
 #define	IIDP1_EDGE8		0x00
 #define	IIDP1_EDGE8L		0x02

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204281820.g3SIK8x15222>