]> granicus.if.org Git - clang/commitdiff
Update test case to be compatible with auto-migration to new getelementptr syntax...
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 14 Feb 2015 00:41:07 +0000 (00:41 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 14 Feb 2015 00:41:07 +0000 (00:41 +0000)
The first change won't touch GEPOperators such as these, but the update
script only identifies them by the leading '(' after getelementptr or
'getelementptr inbounds', so update this test to at least have those
features to allow auto-migrating.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229198 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/clear_cache.c

index f859d7fdc9a0cec836913cb3a78883ac29effaed..ec88c904c24afcbdd288bd8e18d6023dff3e3a8f 100644 (file)
@@ -7,6 +7,6 @@ char buffer[32] = "This is a largely unused buffer";
 
 int main() {
   __builtin___clear_cache(buffer, buffer+32);
-// CHECK: @llvm.clear_cache(i8* getelementptr {{.*}}, i8* getelementptr {{.*}} (i8* getelementptr {{.*}} 32))
+// CHECK: @llvm.clear_cache(i8* getelementptr inbounds ({{.*}}, i8* getelementptr inbounds (i8* getelementptr inbounds ({{.*}} 32))
   return 0;
 }