aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-09-24 08:29:43 +0000
committerGitHub <noreply@github.com>2021-09-24 08:29:43 +0000
commit8a0dd2bd98150b79962f6f1f6f4f6555d6dc8f4f (patch)
treece84ef3900f64c8015a4ece868fdfc1b9c8760e4 /gcc/rust
parentf3da612f98df143bca28258f084bc8b3f804c871 (diff)
parentac2d117861e717f7e4e80970b6866abdcf9b2e99 (diff)
downloadgcc-8a0dd2bd98150b79962f6f1f6f4f6555d6dc8f4f.zip
gcc-8a0dd2bd98150b79962f6f1f6f4f6555d6dc8f4f.tar.gz
gcc-8a0dd2bd98150b79962f6f1f6f4f6555d6dc8f4f.tar.bz2
Merge #689
689: x86: Instead of 'TARGET_ISA_[...]', 'TARGET_ISA2_[...]', use 'TARGET_[...]' [#247] r=philberty a=tschwinge ... in preparation for a merge from GCC upstream, where the former disappear. Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
Diffstat (limited to 'gcc/rust')
-rw-r--r--gcc/rust/rust-session-manager.cc46
1 files changed, 23 insertions, 23 deletions
diff --git a/gcc/rust/rust-session-manager.cc b/gcc/rust/rust-session-manager.cc
index a924c4b..328edd8 100644
--- a/gcc/rust/rust-session-manager.cc
+++ b/gcc/rust/rust-session-manager.cc
@@ -156,117 +156,117 @@ Session::enable_features ()
/*
if (target == "x86" || target == "x86_64") {
- if (TARGET_ISA_AES) {
+ if (TARGET_AES) {
// enable aes, implicitly enable sse2
implicitly_enable_feature("aes");
}
- if (TARGET_ISA_AVX) {
+ if (TARGET_AVX) {
// enable avx, implicitly enable sse4.2
implicitly_enable_feature("sse4.2");
}
- if (TARGET_ISA_AVX2) {
+ if (TARGET_AVX2) {
// enable avx2, implicitly enable avx
implicitly_enable_feature("avx");
}
- if (TARGET_ISA_BMI) {
+ if (TARGET_BMI) {
// enable bmi1
implicitly_enable_feature("bmi1");
}
- if (TARGET_ISA_BMI2) {
+ if (TARGET_BMI2) {
// enable bmi2
implicitly_enable_feature("bmi2");
}
- if (TARGET_ISA_FMA) {
+ if (TARGET_FMA) {
// enable fma, implicitly enable avx
implicitly_enable_feature("fma");
}
- if (TARGET_ISA_FXSR) {
+ if (TARGET_FXSR) {
// enable fxsr
implicitly_enable_feature("fxsr");
}
- if (TARGET_ISA_LZCNT) {
+ if (TARGET_LZCNT) {
// enable lzcnt
implicitly_enable_feature("lzcnt");
}
- if (TARGET_ISA_VPCLMULQDQ) {
+ if (TARGET_VPCLMULQDQ) {
// enable pclmulqdq, implicitly enable sse2
implicitly_enable_feature("pclmulqdq");
}
- if (TARGET_ISA_POPCNT) {
+ if (TARGET_POPCNT) {
// enable popcnt
implicitly_enable_feature("popcnt");
}
- if (TARGET_ISA_RDRND) {
+ if (TARGET_RDRND) {
// enable rdrand
implicitly_enable_feature("rdrand");
}
- if (TARGET_ISA_RDSEED) {
+ if (TARGET_RDSEED) {
// enable rdseed
implicitly_enable_feature("rdseed");
}
- if (TARGET_ISA_SHA) {
+ if (TARGET_SHA) {
// enable sha, implicitly enable sse2
implicitly_enable_feature("sha");
}
- if (TARGET_ISA_SSE) {
+ if (TARGET_SSE) {
// enable sse
implicitly_enable_feature("sse");
}
- if (TARGET_ISA_SSE2) {
+ if (TARGET_SSE2) {
// enable sse2, implicitly enable sse
implicitly_enable_feature("sse2");
}
- if (TARGET_ISA_SSE3) {
+ if (TARGET_SSE3) {
// enable sse3, implicitly enable sse2
implicitly_enable_feature("sse3");
}
- if (TARGET_ISA_SSE4_1) {
+ if (TARGET_SSE4_1) {
// enable sse4.1, implicitly enable sse3
implicitly_enable_feature("sse4.1");
}
- if (TARGET_ISA_SSE4_2) {
+ if (TARGET_SSE4_2) {
// enable sse4.2, implicitly enable sse4.1
implicitly_enable_feature("sse4.2");
}
- if (TARGET_ISA_SSSE3) {
+ if (TARGET_SSSE3) {
// enable ssse3, implicitly enable sse3
implicitly_enable_feature("ssse3");
}
- if (TARGET_ISA_XSAVE) {
+ if (TARGET_XSAVE) {
// enable xsave
implicitly_enable_feature("xsave");
}
- if (TARGET_ISA_XSAVEC) {
+ if (TARGET_XSAVEC) {
// enable xsavec
implicitly_enable_feature("xsavec");
}
- if (TARGET_ISA_XSAVEOPT) {
+ if (TARGET_XSAVEOPT) {
// enable xsaveopt
implicitly_enable_feature("xsaveopt");
}
- if (TARGET_ISA_XSAVES) {
+ if (TARGET_XSAVES) {
// enable xsaves
implicitly_enable_feature("xsaves");
}