forked from OpenCilk/opencilk-project
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SemaStmt] Replace check that was mistakenly removed for complicated …
…stride calculation in a cilk_for.
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Check that Clang properly handles cilk_for loops with complicated stride | ||
// calculations. | ||
// | ||
// RUN: %clang_cc1 %s -fopencilk -verify -fsyntax-only | ||
// expected-no-diagnostics | ||
|
||
void test(char *data, unsigned long size) | ||
{ | ||
_Cilk_for (unsigned long i = 0; i < size; i = i + (1 << 21)) | ||
((char*) data)[i] = 0; | ||
} |