[dfsan] Add a test case of storing zero

This covers a branch in storeShadow.

Reviewed-by: morehouse

Differential Revision: https://reviews.llvm.org/D92632
This commit is contained in:
Jianzhou Zhao 2020-12-04 05:39:37 +00:00
parent a366188d80
commit fa4c3f70ff
1 changed files with 6 additions and 0 deletions
llvm/test/Instrumentation/DataFlowSanitizer

View File

@ -158,3 +158,9 @@ define void @store64(i64 %v, i64* %p) {
store i64 %v, i64* %p
ret void
}
define void @store_zero(i32* %p) {
; NO_COMBINE_PTR_LABEL: store i64 0, i64* {{.*}}, align 2
store i32 0, i32* %p
ret void
}