diff options
author | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2018-03-05 11:30:28 +0000 |
---|---|---|
committer | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2018-03-05 11:30:28 +0000 |
commit | 9d3b45301f99bddd7ff3520ef806d888d5ca1f94 (patch) | |
tree | 389acdc652fcc93c401d794dad701ca60156c31c /lldb/packages/Python/lldbsuite/test/python_api/value | |
parent | 162d436c8e73461a22bc5176b0903d8ae19df59f (diff) | |
download | bcm5719-llvm-9d3b45301f99bddd7ff3520ef806d888d5ca1f94.tar.gz bcm5719-llvm-9d3b45301f99bddd7ff3520ef806d888d5ca1f94.zip |
[x86][CET] Introduce _get_ssp, _inc_ssp intrinsics
Summary:
The _get_ssp intrinsic can be used to retrieve the
shadow stack pointer, independent of the current arch -- in
contract with the rdsspd and the rdsspq intrinsics.
Also, this intrinsic returns zero on CPUs which don't
support CET. The rdssp[d|q] instruction is decoded as nop,
essentially just returning the input operand, which is zero.
Example result of compilation:
```
xorl %eax, %eax
movl %eax, %ecx
rdsspq %rcx # NOP when CET is not supported
movq %rcx, %rax # return zero
```
Reviewers: craig.topper
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D43814
llvm-svn: 326689
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value')
0 files changed, 0 insertions, 0 deletions