[llvm] 1513ca3 - [Feature][NFC]Improve test checks to avoid possible false postitive test

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 06:29:19 PST 2021


Author: Alexey Bataev
Date: 2021-11-12T06:28:44-08:00
New Revision: 1513ca339b4349cdd183fffa341a499d2c9f4575

URL: https://github.com/llvm/llvm-project/commit/1513ca339b4349cdd183fffa341a499d2c9f4575
DIFF: https://github.com/llvm/llvm-project/commit/1513ca339b4349cdd183fffa341a499d2c9f4575.diff

LOG: [Feature][NFC]Improve test checks to avoid possible false postitive test
failures, NFC.

Added: 
    

Modified: 
    llvm/test/Feature/weak_constant.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Feature/weak_constant.ll b/llvm/test/Feature/weak_constant.ll
index 4ac2e7e7d6891..a4051e995361e 100644
--- a/llvm/test/Feature/weak_constant.ll
+++ b/llvm/test/Feature/weak_constant.ll
@@ -1,8 +1,8 @@
 ; RUN: opt < %s -O3 -S > %t
-; RUN:   grep undef %t | count 1
-; RUN:   grep 5 %t | count 1
-; RUN:   grep 7 %t | count 1
-; RUN:   grep 9 %t | count 1
+; RUN:   grep 'constant i32 undef' %t | count 1
+; RUN:   grep 'constant i32 5' %t | count 1
+; RUN:   grep 'i32 7' %t | count 1
+; RUN:   grep 'i32 9' %t | count 1
 
 	%0 = type { i32, i32 }		; type %0
 @a = weak constant i32 undef		; <i32*> [#uses=1]


        


More information about the llvm-commits mailing list