[cfe-commits] r113964 - /cfe/trunk/test/CodeGen/pointer-signext.c

Cameron Esfahani dirty at apple.com
Wed Sep 15 03:52:02 PDT 2010


Author: dirty
Date: Wed Sep 15 05:52:02 2010
New Revision: 113964

URL: http://llvm.org/viewvc/llvm-project?rev=113964&view=rev
Log:
Fix pointer-signext.c test case: it was relying on value names, which don't appear in the non-assert build.  Switch to using check-next as well.

Modified:
    cfe/trunk/test/CodeGen/pointer-signext.c

Modified: cfe/trunk/test/CodeGen/pointer-signext.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/pointer-signext.c?rev=113964&r1=113963&r2=113964&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/pointer-signext.c (original)
+++ cfe/trunk/test/CodeGen/pointer-signext.c Wed Sep 15 05:52:02 2010
@@ -3,9 +3,9 @@
 // Under Windows 64, int and long are 32-bits.  Make sure pointer math doesn't
 // cause any sign extensions.
 
-// CHECK: %sub.ptr.sub = add i64 %param, -8
-// CHECK: %0 = inttoptr i64 %sub.ptr.sub to %struct.anon*
-// CHECK: %tmp3 = getelementptr inbounds %struct.anon* %0, i64 0, i32 0
+// CHECK:      [[P:%.*]] = add i64 %param, -8
+// CHECK-NEXT: [[Q:%.*]] = inttoptr i64 [[P]] to [[R:%.*]]
+// CHECK-NEXT: {{%.*}} = getelementptr inbounds [[R]] [[Q]], i64 0, i32 0
 
 #define CR(Record, TYPE, Field) \
   ((TYPE *) ((unsigned char *) (Record) - (unsigned char *) &(((TYPE *) 0)->Field)))





More information about the cfe-commits mailing list