diff options
Diffstat (limited to 'gcc/hard-reg-set.h')
-rw-r--r-- | gcc/hard-reg-set.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/hard-reg-set.h b/gcc/hard-reg-set.h index 9cdd968..712a267 100644 --- a/gcc/hard-reg-set.h +++ b/gcc/hard-reg-set.h @@ -488,4 +488,11 @@ extern int n_non_fixed_regs; extern const char * reg_names[FIRST_PSEUDO_REGISTER]; +/* Given a hard REGN a FROM mode and a TO mode, return non-zero if + REGN cannot change modes between the specified modes. */ +#define REG_CANNOT_CHANGE_MODE_P(REGN, FROM, TO) \ + (TEST_HARD_REG_BIT \ + (reg_class_contents[(int) CANNOT_CHANGE_MODE_CLASS (FROM, TO)], \ + REGN)) + #endif /* ! GCC_HARD_REG_SET_H */ |