forked from OSchip/llvm-project
[LLDB][JIT] Set processor for ARM architecture
Patch sets ARM cpu, before compiling JIT code. This enables FastISel for armv6 and higher CPUs and allows using hardware FPU ~~~ OS Laboratory. Huawei RRI. Saint-Petersburg Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D131783
This commit is contained in:
parent
1b67ce79e3
commit
ff9efe240c
|
@ -583,7 +583,6 @@ void ArchSpec::SetFlags(const std::string &elf_abi) {
|
|||
|
||||
std::string ArchSpec::GetClangTargetCPU() const {
|
||||
std::string cpu;
|
||||
|
||||
if (IsMIPS()) {
|
||||
switch (m_core) {
|
||||
case ArchSpec::eCore_mips32:
|
||||
|
@ -630,6 +629,9 @@ std::string ArchSpec::GetClangTargetCPU() const {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (GetTriple().isARM())
|
||||
cpu = GetTriple().getARMCPUForArch("").str();
|
||||
return cpu;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ class FPEvalTestCase(TestBase):
|
|||
# Find the line number to break inside main().
|
||||
self.line = line_number('main.c', '// Set break point at this line.')
|
||||
|
||||
@skipIf(archs=no_match(['amd64', 'x86_64', 'arm64'])) # lldb jitter incorrectly evals function with FP args on 32 bit arm
|
||||
def test(self):
|
||||
"""Test floating point expressions while jitter is disabled."""
|
||||
self.build()
|
||||
|
|
Loading…
Reference in New Issue