diff options
author | David Spickett <david.spickett@linaro.org> | 2025-09-26 09:33:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-26 08:33:50 +0000 |
commit | 8c122e5d3bcbdd82c34a406c6d3029060306521a (patch) | |
tree | 84cde98cc4e5ace15dee6686d715ec328175be84 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 9de1bc0336540ad643249ec216d9c02f9b3b3786 (diff) | |
download | llvm-8c122e5d3bcbdd82c34a406c6d3029060306521a.zip llvm-8c122e5d3bcbdd82c34a406c6d3029060306521a.tar.gz llvm-8c122e5d3bcbdd82c34a406c6d3029060306521a.tar.bz2 |
[lldb][test] Make Linux cpuinfo check more robust (#160675)
We were looking for any mention of the feature name in cpuinfo, which
could have hit anything including features with common prefixes like
sme, sme2, smefa64.
Luckily this was not a problem but I'm changing this to find the
features line and split the features into a list. Then we are only
looking for exact matches.
Here's the information for one core as an example:
```
processor : 7
BogoMIPS : 200.00
Features : fp asimd evtstrm crc32 atomics fphp asimdhp cpuid <...>
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd0f
CPU revision : 0
```
(and to avoid any doubt, this is from a CPU simulated in Arm's FVP, it's
not real)
Note that the layout of the label, colon, values is sometimes aligned
but not always. So I trim whitespace a few times to normalise that.
This repeats once for each core so we only need to find one features
line.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions