aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Memory.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2012-11-29 09:49:50 -0800
committerJF Bastien <jfb@chromium.org>2012-11-29 09:49:50 -0800
commit8116fa363f953674c628f8347b1da4efd5089437 (patch)
treeec322bf78a3e3ec7d919d5c67a38f573839d95e0 /lib/Support/Memory.cpp
parenta75f6d81a9d7d19b38120758a4d0445adbfac13b (diff)
Disable register-register preloads for NaCl.
This disables, prefetches using the base reg + index reg ("[rb, ri]") style addressing mode. We do not allow this addressing mode for other memory instructions either and just to make sure we would also like to sandbox this instruction which is only possible for the base + immediate offset addressing mode. R=dschuff@chromium.org BUG=https://code.google.com/p/nativeclient/issues/detail?id=3117 TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-1.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-3.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-4.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-5.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-6.c TEST=test/CodeGen/ARM/prefetch.ll Review URL: https://codereview.chromium.org/11416141
Diffstat (limited to 'lib/Support/Memory.cpp')
0 files changed, 0 insertions, 0 deletions