Simonas Kazlauskas
c2313a4530
[X86, NFC] Update stack-clash tests using the automated tooling
...
This is in preparation of changes in this area (such as D98789 and D98906).
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D98909
2021-03-19 14:01:55 +02:00
serge-sans-paille
0f60bcc36c
[stack-clash] Fix probing of dynamic alloca
...
- Perform the probing in the correct direction.
Related to https://github.com/rust-lang/rust/pull/77885#issuecomment-711062924
- The first touch on a dynamic alloca cannot use a mov because it clobbers
existing space. Use a xor 0 instead
Differential Revision: https://reviews.llvm.org/D90216
2020-10-30 15:34:00 +01:00
serge-sans-paille
f2c6bfa350
Fix interaction between stack alignment and inline-asm stack clash protection
...
As reported in https://github.com/rust-lang/rust/issues/70143 alignment is not
taken into account when doing the probing. Fix that by adjusting the first probe
if the stack align is small, or by extending the dynamic probing if the
alignment is large.
Differential Revision: https://reviews.llvm.org/D84419
2020-10-02 16:51:49 +02:00