aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-25 17:23:43 +0000
committerChris Lattner <sabre@nondot.org>2009-09-25 17:23:43 +0000
commitce89de231525a80c137a1de88fb8d0467c6ce973 (patch)
tree31e0dce8e11a6aea50eb3f20fa8d3fbcaf7a3c53 /test
parent8891e4478909879ca4f4e745312b542cc8aca7e6 (diff)
downloadexternal_llvm-ce89de231525a80c137a1de88fb8d0467c6ce973.zip
external_llvm-ce89de231525a80c137a1de88fb8d0467c6ce973.tar.gz
external_llvm-ce89de231525a80c137a1de88fb8d0467c6ce973.tar.bz2
reimplement the regex matching strategy by building a single
regex and matching it instead of trying to match chunks at a time. Matching chunks at a time broke with check lines like CHECK: foo {{.*}}bar because the .* would eat the entire rest of the line and bar would never match. Now we just escape the fixed strings for the user, so that something like: CHECK: a() {{.*}}??? is matched as: CHECK: {{a\(\) .*\?\?\?}} transparently "under the covers". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/xor.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/CodeGen/X86/xor.ll b/test/CodeGen/X86/xor.ll
index 86ecbe5..af263f9 100644
--- a/test/CodeGen/X86/xor.ll
+++ b/test/CodeGen/X86/xor.ll
@@ -59,10 +59,10 @@ bb12:
; X64: test4:
; X64: notl %eax
-; X64: andl {{.*%eax}}
+; X64: andl {{.*}}%eax
; X32: test4:
; X32: notl %edx
-; X32: andl {{.*%edx}}
+; X32: andl {{.*}}%edx
}
define i16 @test5(i16 %a, i16 %b) nounwind {
@@ -81,10 +81,10 @@ bb12:
ret i16 %tmp3
; X64: test5:
; X64: notw %ax
-; X64: andw {{.*%ax}}
+; X64: andw {{.*}}%ax
; X32: test5:
; X32: notw %dx
-; X32: andw {{.*%dx}}
+; X32: andw {{.*}}%dx
}
define i8 @test6(i8 %a, i8 %b) nounwind {
@@ -103,10 +103,10 @@ bb12:
ret i8 %tmp3
; X64: test6:
; X64: notb %al
-; X64: andb {{.*%al}}
+; X64: andb {{.*}}%al
; X32: test6:
; X32: notb %dl
-; X32: andb {{.*%dl}}
+; X32: andb {{.*}}%dl
}
define i32 @test7(i32 %a, i32 %b) nounwind {
@@ -125,9 +125,9 @@ bb12:
ret i32 %tmp3
; X64: test7:
; X64: xorl $2147483646, %eax
-; X64: andl {{.*%eax}}
+; X64: andl {{.*}}%eax
; X32: test7:
; X32: xorl $2147483646, %edx
-; X32: andl {{.*%edx}}
+; X32: andl {{.*}}%edx
}