This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Duplicate unspec instruction entries in rs6000.md?
- From: Syd Polk <spolk at apple dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 14 Jan 2004 10:54:52 -0800
- Subject: Duplicate unspec instruction entries in rs6000.md?
While working on builtin PPC intrinsics, I noticed that there are
duplicate unspec insn specifiers in rs6000.md:
;;
;; UNSPEC usage
;;
(define_constants
[(UNSPEC_FRSP 0) ; frsp for POWER machines
(UNSPEC_TIE 5) ; tie stack contents and stack pointer
(UNSPEC_TOCPTR 6) ; address of a word pointing to the TOC
(UNSPEC_TOC 7) ; address of the TOC (more-or-less)
(UNSPEC_MOVSI_GOT 8)
(UNSPEC_MV_CR_OV 9) ; move_from_CR_ov_bit
(UNSPEC_FCTIWZ 10)
(UNSPEC_LD_MPIC 15) ; load_macho_picbase
(UNSPEC_MPIC_CORRECT 16) ; macho_correct_pic
(UNSPEC_TLSGD 17)
(UNSPEC_TLSLD 18)
(UNSPEC_MOVESI_FROM_CR 19)
(UNSPEC_MOVESI_TO_CR 20)
(UNSPEC_TLSDTPREL 21)
(UNSPEC_TLSDTPRELHA 22)
(UNSPEC_TLSDTPRELLO 23)
(UNSPEC_TLSGOTDTPREL 24)
(UNSPEC_TLSTPREL 25)
(UNSPEC_TLSTPRELHA 26)
(UNSPEC_TLSTPRELLO 27)
(UNSPEC_TLSGOTTPREL 28)
(UNSPEC_TLSTLS 29)
(UNSPEC_FIX_TRUNC_TF 30) ; fadd, rounding towards zero
])
;;
;; UNSPEC_VOLATILE usage
;;
(define_constants
[(UNSPECV_BLOCK 0)
(UNSPECV_EH_RR 9) ; eh_reg_restore
])
Is it ok for an UNSPEC and an UNSPEC_VOLATILE to have the same index
number?
Syd Polk
Apple Computer
Technology EPM, Mac OS X Development Tools
+1 408 974-0577