[llvm-commits] [llvm] r73270 - /llvm/trunk/test/FrontendC/pr4349.c
Dan Gohman
gohman at apple.com
Fri Jun 12 16:31:14 PDT 2009
Author: djg
Date: Fri Jun 12 18:31:14 2009
New Revision: 73270
URL: http://llvm.org/viewvc/llvm-project?rev=73270&view=rev
Log:
Adjust this test's regex strings so that they work regardless
of the target's pointer size. This avoids the need for -m32 on
the llvm-gcc command-line, which some targets may not support.
Modified:
llvm/trunk/test/FrontendC/pr4349.c
Modified: llvm/trunk/test/FrontendC/pr4349.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/pr4349.c?rev=73270&r1=73269&r2=73270&view=diff
==============================================================================
--- llvm/trunk/test/FrontendC/pr4349.c (original)
+++ llvm/trunk/test/FrontendC/pr4349.c Fri Jun 12 18:31:14 2009
@@ -1,9 +1,9 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {\\\[2 x \\\[2 x i8\\\]\\\]}
-// RUN: %llvmgcc -m32 %s -S -emit-llvm -O0 -o - | grep svars2 | grep {i32 1} | count 1
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {, i\[\[:digit:\]\]\\+ 1)} | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep {\\\[2 x i16\\\]}
-// RUN: %llvmgcc -m32 %s -S -emit-llvm -O0 -o - | grep svars3 | grep {i32 1} | count 1
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep {, i\[\[:digit:\]\]\\+ 1)} | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars4 | grep {\\\[2 x \\\[2 x i8\\\]\\\]} | count 1
-// RUN: %llvmgcc -m32 %s -S -emit-llvm -O0 -o - | grep svars4 | grep {i32 1, i32 1} | count 1
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars4 | grep {, i\[\[:digit:\]\]\\+ 1, i\[\[:digit:\]\]\\+ 1)} | count 1
// PR 4349
union reg
More information about the llvm-commits
mailing list