[llvm] r215166 - Make these regexes stricter by disallowing any additional characters in the output.

Adrian Prantl aprantl at apple.com
Thu Aug 7 16:04:07 PDT 2014


Author: adrian
Date: Thu Aug  7 18:04:07 2014
New Revision: 215166

URL: http://llvm.org/viewvc/llvm-project?rev=215166&view=rev
Log:
Make these regexes stricter by disallowing any additional characters in the output.
Thanks to dblaikie for pointing this out!

Modified:
    llvm/trunk/test/CodeGen/ARM/debug-info-sreg2.ll
    llvm/trunk/test/DebugInfo/ARM/s-super-register.ll

Modified: llvm/trunk/test/CodeGen/ARM/debug-info-sreg2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/debug-info-sreg2.ll?rev=215166&r1=215165&r2=215166&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/debug-info-sreg2.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/debug-info-sreg2.ll Thu Aug  7 18:04:07 2014
@@ -10,7 +10,7 @@ target triple = "thumbv7-apple-macosx10.
 
 ; CHECK: 0x00000000: Beginning address offset:
 ; CHECK-NEXT:           Ending address offset:
-; CHECK-NEXT:            Location description: 90 {{.. .. .. ..}}
+; CHECK-NEXT:            Location description: 90 {{.. .. .. .. $}}
 
 define void @_Z3foov() optsize ssp {
 entry:

Modified: llvm/trunk/test/DebugInfo/ARM/s-super-register.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/ARM/s-super-register.ll?rev=215166&r1=215165&r2=215166&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/ARM/s-super-register.ll (original)
+++ llvm/trunk/test/DebugInfo/ARM/s-super-register.ll Thu Aug  7 18:04:07 2014
@@ -7,7 +7,7 @@ target triple = "thumbv7-apple-macosx10.
 ; 0x90   DW_OP_regx of super-register
 ; 0x93   DW_OP_piece
 ; 0x9d   DW_OP_bit_piece
-; CHECK:            Location description: 90 {{.. .. ((93 ..)|(9d .. ..))}}
+; CHECK:            Location description: 90 {{.. .. ((93 ..)|(9d .. ..)) $}}
 
 define void @_Z3foov() optsize ssp {
 entry:





More information about the llvm-commits mailing list