From: David Blaikie Date: Sat, 14 Feb 2015 00:41:07 +0000 (+0000) Subject: Update test case to be compatible with auto-migration to new getelementptr syntax... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec58d9e3ac445e96413d10957c2e2488a695e784;p=clang Update test case to be compatible with auto-migration to new getelementptr syntax coming in the near future 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 --- diff --git a/test/CodeGen/clear_cache.c b/test/CodeGen/clear_cache.c index f859d7fdc9..ec88c904c2 100644 --- a/test/CodeGen/clear_cache.c +++ b/test/CodeGen/clear_cache.c @@ -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; }