llvm.org GIT mirror llvm / 747c02c
[asan] fix asan-vs-gvn.ll test (it did not actually check much before this change) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150441 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 7 years ago
1 changed file(s) with 17 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2323 ; CHECK: @test_widening_bad
2424 ; CHECK: __asan_report_load1
2525 ; CHECK: __asan_report_load1
26 ; CHECK-ret i32
26 ; CHECK-NOT: __asan_report
27 ; We can not use check for "ret" here because __asan_report_load1 calls live after ret.
28 ; CHECK: end_test_widening_bad
2729 }
2830
29 ;; Accessing byets 4 and 5. Ok to widen to i16.
31 define void @end_test_widening_bad() {
32 entry:
33 ret void
34 }
35
36 ;; Accessing bytes 4 and 5. Ok to widen to i16.
3037
3138 define i32 @test_widening_ok(i8* %P) nounwind ssp noredzone address_safety {
3239 entry:
3744 %add = add nsw i32 %conv, %conv2
3845 ret i32 %add
3946 ; CHECK: @test_widening_ok
40 ; CHECK: __asan_report_load1
41 ; CHECK-ret i32
47 ; CHECK: __asan_report_load2
48 ; CHECK-NOT: __asan_report
49 ; CHECK: end_test_widening_ok
4250 }
51
52 define void @end_test_widening_ok() {
53 entry:
54 ret void
55 }