diff options
Diffstat (limited to 'gcc/config/nvptx/nvptx.c')
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index b4e2c05..cc34271 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -5521,6 +5521,14 @@ nvptx_modes_tieable_p (machine_mode, machine_mode) return false; } +/* Implement TARGET_HARD_REGNO_NREGS. */ + +static unsigned int +nvptx_hard_regno_nregs (unsigned int, machine_mode) +{ + return 1; +} + #undef TARGET_OPTION_OVERRIDE #define TARGET_OPTION_OVERRIDE nvptx_option_override @@ -5648,6 +5656,9 @@ nvptx_modes_tieable_p (machine_mode, machine_mode) #undef TARGET_MODES_TIEABLE_P #define TARGET_MODES_TIEABLE_P nvptx_modes_tieable_p +#undef TARGET_HARD_REGNO_NREGS +#define TARGET_HARD_REGNO_NREGS nvptx_hard_regno_nregs + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-nvptx.h" |