aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2021-11-08 10:36:25 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2021-11-08 10:36:25 +0000
commit8fd2477ddc358660611f79d8e50f31ed0f3aa105 (patch)
tree6395941555799811b180c6eb89c5784daf68b92f /gcc/expmed.h
parent61a7f947cc063f92ccdaa6319f1f3894bcc8557e (diff)
downloadgcc-8fd2477ddc358660611f79d8e50f31ed0f3aa105.zip
gcc-8fd2477ddc358660611f79d8e50f31ed0f3aa105.tar.gz
gcc-8fd2477ddc358660611f79d8e50f31ed0f3aa105.tar.bz2
genmodes: Define NUM_MODE_* macros
I was working on a patch that needed to calculate the number of modes in a particular class. It seemed better to have genmodes generate this directly rather than do the kind of dance that expmed.h had. gcc/ * genmodes.c (emit_insn_modes_h): Define NUM_MODE_* macros. * expmed.h (NUM_MODE_INT): Delete in favor of genmodes definitions. (NUM_MODE_PARTIAL_INT, NUM_MODE_VECTOR_INT): Likewise. * real.h (real_format_for_mode): Use NUM_MODE_FLOAT and NUM_MODE_DECIMAL_FLOAT. (REAL_MODE_FORMAT): Likewise.
Diffstat (limited to 'gcc/expmed.h')
-rw-r--r--gcc/expmed.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/expmed.h b/gcc/expmed.h
index 93cd631..6b13ea9 100644
--- a/gcc/expmed.h
+++ b/gcc/expmed.h
@@ -133,15 +133,6 @@ struct alg_hash_entry {
#define NUM_ALG_HASH_ENTRIES 307
#endif
-#define NUM_MODE_INT \
- (MAX_MODE_INT - MIN_MODE_INT + 1)
-#define NUM_MODE_PARTIAL_INT \
- (MIN_MODE_PARTIAL_INT == E_VOIDmode ? 0 \
- : MAX_MODE_PARTIAL_INT - MIN_MODE_PARTIAL_INT + 1)
-#define NUM_MODE_VECTOR_INT \
- (MIN_MODE_VECTOR_INT == E_VOIDmode ? 0 \
- : MAX_MODE_VECTOR_INT - MIN_MODE_VECTOR_INT + 1)
-
#define NUM_MODE_IP_INT (NUM_MODE_INT + NUM_MODE_PARTIAL_INT)
#define NUM_MODE_IPV_INT (NUM_MODE_IP_INT + NUM_MODE_VECTOR_INT)