[MSAN] Fix memcmp_test on MIPS
authorSagar Thakur <sagar.thakur@imgtec.com>
Wed, 24 Feb 2016 13:48:14 +0000 (13:48 +0000)
committerSagar Thakur <sagar.thakur@imgtec.com>
Wed, 24 Feb 2016 13:48:14 +0000 (13:48 +0000)
commitb6917b42f40073d5adc156f5d56e55c31fa98aba
treece9c73abee4c6532c77645da6cd93d5ddf85958f
parente4a75fd8965c38d4b96bd202a4de74d7132639bd
[MSAN] Fix memcmp_test on MIPS

Summary: As per the test the 4th element of both arrays are not initialized and hence will contain garbage values. Memcmp returns the difference between the garbage values of the 4th element which will be different on every run of the test. And since the return value of memcmp is returned from main, we are getting random exit code every time.

Reviewers: kcc, eugenis
Subscribers: mohit.bhakkad, jaydeep, llvm-commits
Differential: http://reviews.llvm.org/D17534
llvm-svn: 261739
compiler-rt/test/msan/memcmp_test.cc