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.
llvm-svn: 229198
13 lines
451 B
C
13 lines
451 B
C
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
|
|
|
char buffer[32] = "This is a largely unused buffer";
|
|
|
|
// __builtin___clear_cache always maps to @llvm.clear_cache, but what
|
|
// each back-end produces is different, and this is tested in LLVM
|
|
|
|
int main() {
|
|
__builtin___clear_cache(buffer, buffer+32);
|
|
// CHECK: @llvm.clear_cache(i8* getelementptr inbounds ({{.*}}, i8* getelementptr inbounds (i8* getelementptr inbounds ({{.*}} 32))
|
|
return 0;
|
|
}
|