[asan] Loosen test for upcoming ppc64 change
authorHal Finkel <hfinkel@anl.gov>
Thu, 15 Jan 2015 20:48:38 +0000 (20:48 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 15 Jan 2015 20:48:38 +0000 (20:48 +0000)
commite67f32aa991554aec3c5a4cf7d044f419e64a789
tree5ee210814dfc7956e234662d2c200925a9e28b1d
parent7059e2959d61c5b97916e1a02c610d68aed9a1fe
[asan] Loosen test for upcoming ppc64 change

This test casts 0x4 to a function pointer and calls it. Unfortunately, the
faulting address may not exactly be 0x4 on PPC64 ELFv1 systems. The LLVM PPC
backend used to always generate the loads "in order", so we'd fault at 0x4
anyway. However, at upcoming change to loosen that ordering, and we'll pick a
different order on some targets. As a result, as explained in the comment, we
need to allow for certain nearby addresses as well.

llvm-svn: 226202
compiler-rt/test/asan/TestCases/zero_page_pc.cc