[llvm] b790443 - [test] Fix incorrect use of string variable use

Thomas Preud'homme via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 18 05:19:45 PDT 2021


Author: Thomas Preud'homme
Date: 2021-03-18T12:19:51Z
New Revision: b79044391eb2b58adc34647862f33d3c670fa8e9

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

LOG: [test] Fix incorrect use of string variable use

LLVM test CodeGen/AArch64/machine-outliner-retaddr-sign-thunk.ll uses
a string substitution block that contains a regex matching block. This
seems like as a copy/paste from other similar test where the match also
defines a variable, hence the [[]] syntax. In this case however this is
a CHECK-NOT variable so nothing should match. No variable definition is
thus expected and the square brackets can be dropped.

Reviewed By: chill

Differential Revision: https://reviews.llvm.org/D98853

Added: 
    

Modified: 
    llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-thunk.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-thunk.ll b/llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-thunk.ll
index aea36d969108..3c4eff39c60b 100644
--- a/llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-thunk.ll
+++ b/llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-thunk.ll
@@ -67,7 +67,7 @@ entry:
 
 attributes #0 = { "sign-return-address"="non-leaf" }
 
-; CHECK-NOT:        [[OUTLINED_FUNCTION_{{.*}}]]
+; CHECK-NOT:        OUTLINED_FUNCTION_{{.*}}
 ; CHECK-NOT:         .cfi_b_key_frame
 ; CHECK-NOT:         paci{{[a,b]}}sp
 ; CHECK-NOT:         hint #2{{[5,7]}}


        


More information about the llvm-commits mailing list