-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: qinfan <[email protected]>
- Loading branch information
1 parent
e5295c8
commit 6e7227a
Showing
4 changed files
with
14 additions
and
3 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
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,12 @@ | ||
// RUN: clang -no-opaque-pointers -triple riscv32-unknown-unknown -S -emit-llvm -o - %s | FileCheck %s | ||
|
||
void test() { | ||
// CHECK: call void @llvm.riscv.ventus.barrier(i32 1) | ||
// CHECK-NEXT: call void @llvm.riscv.ventus.barrier.with.scope(i32 1, i32 2) | ||
// CHECK-NEXT: call void @llvm.riscv.ventus.barrier(i32 1) | ||
// CHECK-NEXT: call void @llvm.riscv.ventus.barrier.with.scope(i32 1, i32 2) | ||
barrier(1); | ||
barrier(1, 2); | ||
work_group_barrier(1); | ||
work_group_barrier(1, 2); | ||
} |