r215585 - test/CodeGen: Don't rely on a value's number in check lines

Justin Bogner mail at justinbogner.com
Wed Aug 13 14:54:06 PDT 2014


Author: bogner
Date: Wed Aug 13 16:54:06 2014
New Revision: 215585

URL: http://llvm.org/viewvc/llvm-project?rev=215585&view=rev
Log:
test/CodeGen: Don't rely on a value's number in check lines

The tests in r215568 hard code a value as %0 in their checks. This
isn't correct in asserts builds.

Modified:
    cfe/trunk/test/CodeGen/builtins-arm.c

Modified: cfe/trunk/test/CodeGen/builtins-arm.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/builtins-arm.c?rev=215585&r1=215584&r2=215585&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/builtins-arm.c (original)
+++ cfe/trunk/test/CodeGen/builtins-arm.c Wed Aug 13 16:54:06 2014
@@ -69,11 +69,12 @@ unsigned rbit(unsigned a) {
 
 void prefetch(int i) {
   __builtin_arm_prefetch(&i, 0, 1);
-// CHECK: call {{.*}} @llvm.prefetch(i8* %0, i32 0, i32 3, i32 1)
+// CHECK: call {{.*}} @llvm.prefetch(i8* %{{.*}}, i32 0, i32 3, i32 1)
 
   __builtin_arm_prefetch(&i, 1, 1);
-// CHECK: call {{.*}} @llvm.prefetch(i8* %0, i32 1, i32 3, i32 1)
+// CHECK: call {{.*}} @llvm.prefetch(i8* %{{.*}}, i32 1, i32 3, i32 1)
+
 
   __builtin_arm_prefetch(&i, 1, 0);
-// CHECK: call {{.*}} @llvm.prefetch(i8* %0, i32 1, i32 3, i32 0)
+// CHECK: call {{.*}} @llvm.prefetch(i8* %{{.*}}, i32 1, i32 3, i32 0)
 }





More information about the cfe-commits mailing list