This is an archive of the discontinued LLVM Phabricator instance.

[asan-assembly-instrumentation] Fixed operations with stack in assembly instrumentation.
ClosedPublic

Authored by ygorshenin on May 20 2014, 4:29 AM.

Details

Reviewers
eugenis
Summary

Fixed operations with stack in assembly instrumentation.
Implemented test which checks that flags are correctly restored after assembly instrumentation.

Diff Detail

Event Timeline

ygorshenin updated this revision to Diff 9609.May 20 2014, 4:29 AM
ygorshenin retitled this revision from to Fixed operations with stack in assembly instrumentation. Implemented test which checks that flags are correctly restored after assembly instrumentation..
ygorshenin updated this object.
ygorshenin edited the test plan for this revision. (Show Details)
ygorshenin added a reviewer: eugenis.
ygorshenin added a subscriber: Unknown Object (MLST).
ygorshenin updated this revision to Diff 9619.May 20 2014, 6:43 AM

Fixes.

Updating D3839: Fixed operations with stack in assembly instrumentation.

Implemented test which checks that flags are correctly restored after assembly instrumentation.

ygorshenin retitled this revision from Fixed operations with stack in assembly instrumentation. Implemented test which checks that flags are correctly restored after assembly instrumentation. to [asan-assembly-instrumentation] Fixed operations with stack in assembly instrumentation..May 20 2014, 6:50 AM
ygorshenin updated this object.
ygorshenin updated this revision to Diff 9620.May 20 2014, 6:52 AM

Style fix.

eugenis added inline comments.May 20 2014, 6:56 AM
lib/asan/tests/CMakeLists.txt
63

Please add a simple test case that's affected by this flag!
Something like AddressSanitizer.BitFieldPositiveTest but with asm store or load instead of C assingment.

lib/asan/tests/asan_asm_test.cc
232

Could you make it a separate test case?

eugenis added inline comments.May 20 2014, 7:26 AM
lib/asan/tests/asan_asm_test.cc
245

remove please

ygorshenin updated this revision to Diff 9628.May 20 2014, 9:14 AM

Added simple test for load/store in inline assembly.

ygorshenin updated this revision to Diff 9629.May 20 2014, 9:16 AM

Small fix.

PTAL

lib/asan/tests/CMakeLists.txt
63

Done.

lib/asan/tests/asan_asm_test.cc
232

Done.

245

Done.

eugenis accepted this revision.May 20 2014, 10:15 AM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 20 2014, 10:15 AM
eugenis closed this revision.May 21 2014, 1:30 AM

r209282.