[llvm-commits] [llvm] r150441 - /llvm/trunk/test/Instrumentation/AddressSanitizer/asan-vs-gvn.ll
Kostya Serebryany
kcc at google.com
Mon Feb 13 16:02:35 PST 2012
Author: kcc
Date: Mon Feb 13 18:02:35 2012
New Revision: 150441
URL: http://llvm.org/viewvc/llvm-project?rev=150441&view=rev
Log:
[asan] fix asan-vs-gvn.ll test (it did not actually check much before this change)
Modified:
llvm/trunk/test/Instrumentation/AddressSanitizer/asan-vs-gvn.ll
Modified: llvm/trunk/test/Instrumentation/AddressSanitizer/asan-vs-gvn.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/AddressSanitizer/asan-vs-gvn.ll?rev=150441&r1=150440&r2=150441&view=diff
==============================================================================
--- llvm/trunk/test/Instrumentation/AddressSanitizer/asan-vs-gvn.ll (original)
+++ llvm/trunk/test/Instrumentation/AddressSanitizer/asan-vs-gvn.ll Mon Feb 13 18:02:35 2012
@@ -24,10 +24,17 @@
; CHECK: @test_widening_bad
; CHECK: __asan_report_load1
; CHECK: __asan_report_load1
-; CHECK-ret i32
+; CHECK-NOT: __asan_report
+; We can not use check for "ret" here because __asan_report_load1 calls live after ret.
+; CHECK: end_test_widening_bad
}
-;; Accessing byets 4 and 5. Ok to widen to i16.
+define void @end_test_widening_bad() {
+ entry:
+ ret void
+}
+
+;; Accessing bytes 4 and 5. Ok to widen to i16.
define i32 @test_widening_ok(i8* %P) nounwind ssp noredzone address_safety {
entry:
@@ -38,6 +45,12 @@
%add = add nsw i32 %conv, %conv2
ret i32 %add
; CHECK: @test_widening_ok
-; CHECK: __asan_report_load1
-; CHECK-ret i32
+; CHECK: __asan_report_load2
+; CHECK-NOT: __asan_report
+; CHECK: end_test_widening_ok
+}
+
+define void @end_test_widening_ok() {
+ entry:
+ ret void
}
More information about the llvm-commits
mailing list