diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-08-15 13:39:28 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-08-15 13:51:18 -0400 |
commit | 8721490d3859b4d7fff633bdf3c71d888e75727c (patch) | |
tree | d2a1feb5d4ba533ed9a83cb9ad6ee8f8482a5fdd /llvm/lib/Support/CommandLine.cpp | |
parent | cd0e1964137f1cd7b508809ec80c7d9dcb3f0458 (diff) | |
download | llvm-8721490d3859b4d7fff633bdf3c71d888e75727c.zip llvm-8721490d3859b4d7fff633bdf3c71d888e75727c.tar.gz llvm-8721490d3859b4d7fff633bdf3c71d888e75727c.tar.bz2 |
[x86] split memcmp tests for 32/64-bit targets; NFC
memcmp is defined as taking a size_t length arg,
so that differs depending on pointer size of the
target.
We casually matched non-compliant function signatures
as memcmp, but that can cause crashing as seen with
PR50850.
If we fix that bug, these tests would no longer be
testing the expected behavior for a 32-bit target,
so I have duplicated all tests and adjusted them
to match the stricter definition of memcmp/bcmp
by changing the length arg to i32 on a 32-bit target.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions