diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-06-22 22:26:08 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:17 +0000 |
commit | e742ebec78186c0c7d3288b35f4f35b318762f7b (patch) | |
tree | 7f50f3786d5a946202e3e4dd1be1cdfd06dc65e9 | |
parent | e58a5c98546ba203c77d870d065a48784a1d153d (diff) | |
download | gcc-e742ebec78186c0c7d3288b35f4f35b318762f7b.zip gcc-e742ebec78186c0c7d3288b35f4f35b318762f7b.tar.gz gcc-e742ebec78186c0c7d3288b35f4f35b318762f7b.tar.bz2 |
Added Lico32 target hook (or at least provisional one)
-rw-r--r-- | gcc/config/lm32/lm32.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/lm32/lm32.h b/gcc/config/lm32/lm32.h index 8482104..81ee6d7 100644 --- a/gcc/config/lm32/lm32.h +++ b/gcc/config/lm32/lm32.h @@ -43,6 +43,21 @@ } \ while (0) +#define TARGET_RUST_CPU_INFO() \ + do { \ + rust_add_target_info("target_arch", "lm32"); \ + if (TARGET_MULTIPLY_ENABLED) \ + rust_add_target_info("target_feature", "multiply-enabled"); \ + if (TARGET_DIVIDE_ENABLED) \ + rust_add_target_info("target_feature", "divide-enabled"); \ + if (TARGET_BARREL_SHIFT_ENABLED) \ + rust_add_target_info("target_feature", "barrel-shift-enabled"); \ + if (TARGET_SIGN_EXTEND_ENABLED) \ + rust_add_target_info("target_feature", "sign-extend-enabled"); \ + if (TARGET_USER_ENABLED) \ + rust_add_target_info("target_feature", "user-enabled"); \ + } while (0) + #undef ASM_SPEC #define ASM_SPEC "\ %{mmultiply-enabled} \ |