From 30a49b23edb7a5a6201c5f59c8a5eee9663c3910 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Fri, 18 Mar 2011 11:30:26 +0000 Subject: [PATCH] s390.md: Use define_c_enum for the unspec constant definitions. 2011-03-18 Andreas Krebbel * config/s390/s390.md: Use define_c_enum for the unspec constant definitions. From-SVN: r171132 --- gcc/ChangeLog | 5 +++ gcc/config/s390/s390.md | 98 ++++++++++++++++++++--------------------- 2 files changed, 54 insertions(+), 49 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 792dfb3a310..4e40291f737 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-03-18 Andreas Krebbel + + * config/s390/s390.md: Use define_c_enum for the unspec constant + definitions. + 2011-03-18 Richard Henderson Jakub Jelinek diff --git a/gcc/config/s390/s390.md b/gcc/config/s390/s390.md index 2d552fbe75e..335ed09a686 100644 --- a/gcc/config/s390/s390.md +++ b/gcc/config/s390/s390.md @@ -57,87 +57,87 @@ ;; UNSPEC usage ;; -(define_constants - [; Miscellaneous - (UNSPEC_ROUND 1) - (UNSPEC_CCU_TO_INT 2) - (UNSPEC_CCZ_TO_INT 3) - (UNSPEC_ICM 10) - (UNSPEC_TIE 11) +(define_c_enum "unspec" [ + ; Miscellaneous + UNSPEC_ROUND + UNSPEC_CCU_TO_INT + UNSPEC_CCZ_TO_INT + UNSPEC_ICM + UNSPEC_TIE ; GOT/PLT and lt-relative accesses - (UNSPEC_LTREL_OFFSET 100) - (UNSPEC_LTREL_BASE 101) - (UNSPEC_POOL_OFFSET 102) - (UNSPEC_GOTENT 110) - (UNSPEC_GOT 111) - (UNSPEC_GOTOFF 112) - (UNSPEC_PLT 113) - (UNSPEC_PLTOFF 114) + UNSPEC_LTREL_OFFSET + UNSPEC_LTREL_BASE + UNSPEC_POOL_OFFSET + UNSPEC_GOTENT + UNSPEC_GOT + UNSPEC_GOTOFF + UNSPEC_PLT + UNSPEC_PLTOFF ; Literal pool - (UNSPEC_RELOAD_BASE 210) - (UNSPEC_MAIN_BASE 211) - (UNSPEC_LTREF 212) - (UNSPEC_INSN 213) - (UNSPEC_EXECUTE 214) + UNSPEC_RELOAD_BASE + UNSPEC_MAIN_BASE + UNSPEC_LTREF + UNSPEC_INSN + UNSPEC_EXECUTE ; Atomic Support - (UNSPEC_MB 400) + UNSPEC_MB ; TLS relocation specifiers - (UNSPEC_TLSGD 500) - (UNSPEC_TLSLDM 501) - (UNSPEC_NTPOFF 502) - (UNSPEC_DTPOFF 503) - (UNSPEC_GOTNTPOFF 504) - (UNSPEC_INDNTPOFF 505) + UNSPEC_TLSGD + UNSPEC_TLSLDM + UNSPEC_NTPOFF + UNSPEC_DTPOFF + UNSPEC_GOTNTPOFF + UNSPEC_INDNTPOFF ; TLS support - (UNSPEC_TLSLDM_NTPOFF 511) - (UNSPEC_TLS_LOAD 512) + UNSPEC_TLSLDM_NTPOFF + UNSPEC_TLS_LOAD ; String Functions - (UNSPEC_SRST 600) - (UNSPEC_MVST 601) + UNSPEC_SRST + UNSPEC_MVST ; Stack Smashing Protector - (UNSPEC_SP_SET 700) - (UNSPEC_SP_TEST 701) + UNSPEC_SP_SET + UNSPEC_SP_TEST ; Test Data Class (TDC) - (UNSPEC_TDC_INSN 800) + UNSPEC_TDC_INSN ; Population Count - (UNSPEC_POPCNT 900) - (UNSPEC_COPYSIGN 901) + UNSPEC_POPCNT + UNSPEC_COPYSIGN ]) ;; ;; UNSPEC_VOLATILE usage ;; -(define_constants - [; Blockage - (UNSPECV_BLOCKAGE 0) +(define_c_enum "unspecv" [ + ; Blockage + UNSPECV_BLOCKAGE ; TPF Support - (UNSPECV_TPF_PROLOGUE 20) - (UNSPECV_TPF_EPILOGUE 21) + UNSPECV_TPF_PROLOGUE + UNSPECV_TPF_EPILOGUE ; Literal pool - (UNSPECV_POOL 200) - (UNSPECV_POOL_SECTION 201) - (UNSPECV_POOL_ALIGN 202) - (UNSPECV_POOL_ENTRY 203) - (UNSPECV_MAIN_POOL 300) + UNSPECV_POOL + UNSPECV_POOL_SECTION + UNSPECV_POOL_ALIGN + UNSPECV_POOL_ENTRY + UNSPECV_MAIN_POOL ; TLS support - (UNSPECV_SET_TP 500) + UNSPECV_SET_TP ; Atomic Support - (UNSPECV_CAS 700) - (UNSPECV_ATOMIC_OP 701) + UNSPECV_CAS + UNSPECV_ATOMIC_OP ]) ;; -- 2.30.2