[llvm] 70b64b0 - [test][msan] Simplify test with implicit-check-not

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 26 13:50:18 PDT 2022


Author: Vitaly Buka
Date: 2022-08-26T13:49:56-07:00
New Revision: 70b64b05c53913816f843cdb8773b64531384efc

URL: https://github.com/llvm/llvm-project/commit/70b64b05c53913816f843cdb8773b64531384efc
DIFF: https://github.com/llvm/llvm-project/commit/70b64b05c53913816f843cdb8773b64531384efc.diff

LOG: [test][msan] Simplify test with implicit-check-not

Added: 
    

Modified: 
    llvm/test/Instrumentation/MemorySanitizer/check-constant-shadow.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Instrumentation/MemorySanitizer/check-constant-shadow.ll b/llvm/test/Instrumentation/MemorySanitizer/check-constant-shadow.ll
index 24b63b931fc71..a207de39a00bf 100644
--- a/llvm/test/Instrumentation/MemorySanitizer/check-constant-shadow.ll
+++ b/llvm/test/Instrumentation/MemorySanitizer/check-constant-shadow.ll
@@ -1,5 +1,4 @@
-; RUN: opt < %s -msan-check-access-address=0 -msan-check-constant-shadow=1     \
-; RUN: -msan-track-origins=1 -S -passes=msan 2>&1 | FileCheck %s
+; RUN: opt < %s -msan-check-access-address=0 -msan-check-constant-shadow=1 -msan-eager-checks=1 -msan-track-origins=1 -S -passes=msan 2>&1 | FileCheck %s --implicit-check-not=icmp --implicit-check-not="store i" --implicit-check-not="call void @__msan"
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
@@ -13,6 +12,7 @@ entry:
 }
 
 ; CHECK-LABEL: @main
+; CHECK: store i32 0, i32* bitcast ([100 x i64]* @__msan_retval_tls to i32*)
 ; CHECK: call void @__msan_warning_with_origin_noreturn
 ; CHECK: ret i32 undef
 
@@ -26,11 +26,8 @@ entry:
 }
 
 ; CHECK-LABEL: @StoreConstant
-; CHECK-NOT: store i32
 ; CHECK: store i32 0,
-; CHECK-NOT: store i32
 ; CHECK: store i32 42,
-; CHECK-NOT: store i32
 ; CHECK: ret void
 
 
@@ -44,11 +41,7 @@ entry:
 }
 
 ; CHECK-LABEL: @StoreUndef
-; CHECK-NOT: icmp
 ; CHECK: store i32
-; CHECK-NOT: icmp
 ; CHECK: store i32
-; CHECK-NOT: icmp
 ; CHECK: store i32
-; CHECK-NOT: icmp
 ; CHECK: ret void


        


More information about the llvm-commits mailing list