mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 00:23:43 +00:00
Revert "[RISCV] Add Clang frontend support for Bitmanip extension"
This reverts commit 57cf6ee9c8
.
This commit is contained in:
parent
a3ebc40644
commit
cbe681bd83
@ -125,10 +125,6 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts,
|
||||
|
||||
if (HasC)
|
||||
Builder.defineMacro("__riscv_compressed");
|
||||
|
||||
if (HasB) {
|
||||
Builder.defineMacro("__riscv_bitmanip");
|
||||
}
|
||||
}
|
||||
|
||||
/// Return true if has this feature, need to sync with handleTargetFeatures.
|
||||
@ -143,7 +139,6 @@ bool RISCVTargetInfo::hasFeature(StringRef Feature) const {
|
||||
.Case("f", HasF)
|
||||
.Case("d", HasD)
|
||||
.Case("c", HasC)
|
||||
.Case("b", HasB)
|
||||
.Default(false);
|
||||
}
|
||||
|
||||
@ -161,8 +156,6 @@ bool RISCVTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
|
||||
HasD = true;
|
||||
else if (Feature == "+c")
|
||||
HasC = true;
|
||||
else if (Feature == "+b")
|
||||
HasB = true;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -30,12 +30,11 @@ protected:
|
||||
bool HasF;
|
||||
bool HasD;
|
||||
bool HasC;
|
||||
bool HasB;
|
||||
|
||||
public:
|
||||
RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &)
|
||||
: TargetInfo(Triple), HasM(false), HasA(false), HasF(false),
|
||||
HasD(false), HasC(false), HasB(false) {
|
||||
HasD(false), HasC(false) {
|
||||
LongDoubleWidth = 128;
|
||||
LongDoubleAlign = 128;
|
||||
LongDoubleFormat = &llvm::APFloat::IEEEquad();
|
||||
|
@ -331,9 +331,6 @@ static bool getArchFeatures(const Driver &D, StringRef MArch,
|
||||
case 'c':
|
||||
Features.push_back("+c");
|
||||
break;
|
||||
case 'b':
|
||||
Features.push_back("+b");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
// CHECK-NOT: __riscv_mul
|
||||
// CHECK-NOT: __riscv_muldiv
|
||||
// CHECK-NOT: __riscv_compressed
|
||||
// CHECK-NOT: __riscv_bitmanip
|
||||
// CHECK-NOT: __riscv_flen
|
||||
// CHECK-NOT: __riscv_fdiv
|
||||
// CHECK-NOT: __riscv_fsqrt
|
||||
@ -49,12 +48,6 @@
|
||||
// RUN: -o - | FileCheck --check-prefix=CHECK-C-EXT %s
|
||||
// CHECK-C-EXT: __riscv_compressed 1
|
||||
|
||||
// RUN: %clang -target riscv32-unknown-linux-gnu -march=rv32ib -x c -E -dM %s \
|
||||
// RUN: -o - | FileCheck --check-prefix=CHECK-B-EXT %s
|
||||
// RUN: %clang -target riscv64-unknown-linux-gnu -march=rv64ib -x c -E -dM %s \
|
||||
// RUN: -o - | FileCheck --check-prefix=CHECK-B-EXT %s
|
||||
// CHECK-B-EXT: __riscv_bitmanip 1
|
||||
|
||||
// RUN: %clang -target riscv32-unknown-linux-gnu -march=rv32ifd -mabi=ilp32 -x c -E -dM %s \
|
||||
// RUN: -o - | FileCheck --check-prefix=CHECK-SOFT %s
|
||||
// RUN: %clang -target riscv64-unknown-linux-gnu -march=rv64ifd -mabi=lp64 -x c -E -dM %s \
|
||||
|
Loading…
Reference in New Issue
Block a user