diff options
| author | Valentina Giusti <valentina.giusti@intel.com> | 2016-09-05 17:43:10 +0000 |
|---|---|---|
| committer | Valentina Giusti <valentina.giusti@intel.com> | 2016-09-05 17:43:10 +0000 |
| commit | f105abbc0d0bf316f43ca6a3e0b2aae6daedf1d6 (patch) | |
| tree | 9547ee4b31a6203a7a6e3745ae475ad792befc46 /lldb/packages/Python/lldbsuite/test/functionalities/register/a.cpp | |
| parent | 9bd34f975157df546bd57e7a5d86a8aace7d573b (diff) | |
| download | bcm5719-llvm-f105abbc0d0bf316f43ca6a3e0b2aae6daedf1d6.tar.gz bcm5719-llvm-f105abbc0d0bf316f43ca6a3e0b2aae6daedf1d6.zip | |
Intel(R) Memory Protection Extensions (Intel(R) MPX) support.
Summary:
The Intel(R) Memory Protection Extensions (Intel(R) MPX) associates pointers
to bounds, against which the software can check memory references to
prevent out of bound memory access.
This patch allows accessing the MPX registers:
* bnd0-3: 128-bit registers to hold the bound values,
* bndcfgu, bndstatus: 64-bit configuration registers,
This patch also adds read/write tests for the MPX registers in the register
command tests and adds a new subdirectory for MPX specific tests.
Signed-off-by: Valentina Giusti <valentina.giusti@intel.com>
Reviewers: labath, granata.enrico, lldb-commits, clayborg
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D24187
llvm-svn: 280668
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/register/a.cpp')
| -rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/register/a.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/register/a.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/register/a.cpp deleted file mode 100644 index fbacec1918e..00000000000 --- a/lldb/packages/Python/lldbsuite/test/functionalities/register/a.cpp +++ /dev/null @@ -1,44 +0,0 @@ -//===-- a.cpp ------------------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -#include <stdio.h> - -long double -return_long_double (long double value) -{ -#if defined (__i386__) || defined (__x86_64__) - float a=2, b=4,c=8, d=16, e=32, f=64, k=128, l=256, add=0; - __asm__ ( - "int3 ;" - "flds %1 ;" - "flds %2 ;" - "flds %3 ;" - "flds %4 ;" - "flds %5 ;" - "flds %6 ;" - "flds %7 ;" - "faddp ;" : "=g" (add) : "g" (a), "g" (b), "g" (c), "g" (d), "g" (e), "g" (f), "g" (k), "g" (l) ); // Set break point at this line. -#endif // #if defined (__i386__) || defined (__x86_64__) - return value; -} - -long double -outer_return_long_double (long double value) -{ - long double val = return_long_double(value); - val *= 2 ; - return val; -} - -long double -outermost_return_long_double (long double value) -{ - long double val = outer_return_long_double(value); - val *= 2 ; - return val; -} |

