[PATCH] [ASan] Fix zero_page_pc test for PowerPC
Jay Foad
jay.foad at gmail.com
Fri Nov 7 08:30:03 PST 2014
Hi kcc, samsonov, willschm,
In the Power architecture, all branch instructions ignore the 2 least
significant bits of the target address. Consequently if you branch to an
invalid address, the address reported along with the SIGSEGV will have
been rounded down to a multiple of 4. Tweak this test accordingly.
http://reviews.llvm.org/D6167
Files:
test/asan/TestCases/zero_page_pc.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6167.15923.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141107/349a9fed/attachment.bin>
More information about the llvm-commits
mailing list