Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodeGen] Regenerate test checks (NFC)
Switch these tests to use update_cc_test_checks.py to simplify future updates.
- Loading branch information
Showing
2 changed files
with
121 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py | ||
// 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 | ||
|
||
// CHECK-LABEL: @main( | ||
// CHECK-NEXT: entry: | ||
// CHECK-NEXT: [[RETVAL:%.*]] = alloca i32, align 4 | ||
// CHECK-NEXT: store i32 0, i32* [[RETVAL]], align 4 | ||
// CHECK-NEXT: call void @llvm.clear_cache(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i64 0, i64 0), i8* getelementptr inbounds (i8, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @buffer, i64 0, i64 0), i64 32)) | ||
// CHECK-NEXT: ret i32 0 | ||
// | ||
int main() { | ||
__builtin___clear_cache(buffer, buffer+32); | ||
// CHECK: @llvm.clear_cache(i8* getelementptr inbounds ({{.*}}, i8* getelementptr inbounds (i8, i8* getelementptr inbounds ({{.*}} 32)) | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters