[PATCH v3] Add support for sparc compare-and-branch

David Miller davem@davemloft.net
Sun Nov 11 23:16:00 GMT 2012


From: Eric Botcazou <ebotcazou@adacore.com>
Date: Sun, 11 Nov 2012 23:28:38 +0100

>> Eric and Rainer, I think that functionally this patch is fully ready
>> to go into the tree except for the Solaris aspects which I do not have
>> the means to work on.  Have either of you made any progress in this
>> area?
> 
> Rainer, could you post an excerpt of the man page of a recent 'as' supporting 
> the SPARC-T4?  I'm mainly interested in the values of the -xarch= option.
> 
> Thanks in advance.

I strongly doubt that they will be different from the options
supported both in cc and fbe in the Solaris Studio 12.3 release:

     -xarch=sparc Enables the assembler	 to  accept  instructions
		  defined  in  the  SPARC-V9  architecture.   The
		  resulting object code	is in ELF32  format  when
		  compiled  with -m32, ELF64 format with -m64. It
		  will not execute on a	Oracle Solaris V8  system
		  (a  machine with a V8	processor).  It	will exe-
		  cute on a Oracle Solaris V8+ system.

     -xarch=sparcvis
		  Enables the assembler	 to  accept  instructions
		  defined  in  the SPARC-V9 architecture plus the
		  instructions	in  the	 Visual	 Instruction  Set
		  (VIS)	 version  1.0.	The resulting object code
		  is in	V8+ ELF32 format when compiled with -m32,
		  ELF64	 format	with -m64. It will not execute on
		  a Oracle Solaris system with a V8 processor. It
		  will	execute	on a Oracle Solaris system with	a
		  V8+ processor.

     -xarch=sparcvis2
		  Enables the assembler	 to  accept  instructions
		  defined  in the SPARC-V9 architecture, plus the
		  instructions	in  the	 Visual	 Instruction  Set
		  (VIS)	 version  2.0, with UltraSPARC-III exten-
		  sions.  The resulting	object	code  is  in  V8+
		  ELF32	 format	 when  compiled	 with -m32, ELF64
		  format with -m64.

     -xarch=sparcvis3
		  Accept instructions defined for the  SPARC  VIS
		  version   3  of  the	SPARC-V9  ISA  which  are
		  instructions from the	SPARC-V9 instruction set,
		  plus	the  UltraSPARC	extensions, including the
		  Visual Instruction Set (VIS) version	1.0,  the
		  UltraSPARC-III extensions, including the Visual
		  Instruction Set (VIS)	version	 2.0,  the  fused
		  multiply-add	 instructions,	 and  the  Visual
		  Instruction Set (VIS)	version	3.0

     -xarch=sparcfmaf
		  Accept instructions defined for  the	sparcfmaf
		  version   of	 the   SPARC-V9	  ISA,	plus  the
		  UltraSPARC  extensions,  including  the  Visual
		  Instruction	Set   (VIS)   version	1.0,  the
		  UltraSPARC-III extensions, including the Visual
		  Instruction  Set  (VIS)  version  2.0,  and the
		  SPARC64  VI	extensions   for   floating-point
		  multiply-add.

     -xarch=sparcima
		  Accept instructions defined  for  the	 sparcima
		  version  of the SPARC-V9 ISA which are instruc-
		  tions	from the SPARC-V9 instruction  set,  plus
		  the UltraSPARC extensions, including the Visual
		  Instruction  Set   (VIS)   version   1.0,   the
		  UltraSPARC-III extensions, including the Visual
		  Instruction Set (VIS)	version	2.0, the  SPARC64
		  VI  extensions for floating-point multiply-add,
		  and the  SPARC64  VII	 extensions  for  integer
		  multiply-add.

     -xarch=sparc4
		  Accept instructions defined for the sparc4 ver-
		  sion of the SPARC-V9 ISA which are instructions
		  from the SPARC-V9  instruction  set,	plus  the
		  extensions,	which	includes   VIS	1.0,  the
		  UltraSPARC-III extensions, which  includes  VIS
		  2.0,	 the  fused  floating-point  multiply-add
		  instructions,	VIS 3.0, and SPARC4 instructions.




More information about the Gcc-patches mailing list