-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for back with distance zero
- Loading branch information
1 parent
deedcc1
commit 33dc293
Showing
2 changed files
with
19 additions
and
1 deletion.
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,19 @@ | ||
// RUN: zirgen %s --emit=picus | FileCheck %s | ||
|
||
// CHECK: (prime-number 2013265921) | ||
// CHECK: (begin-module Count) | ||
// CHECK: (input x0) | ||
// CHECK-NEXT: (output layout_a__super__super) | ||
// CHECK-NEXT: (output result_a__super__super) | ||
// CHECK-NEXT: (output result_a_reg__super) | ||
// CHECK-NEXT: (call [{{.*}}] Reg [{{.*}}]) | ||
// CHECK-NEXT: (assert (= result_a__super__super x2__super__super)) | ||
// CHECK-NEXT: (assert (= result_a_reg__super x2_reg__super)) | ||
// CHECK-NEXT: (end-module) | ||
|
||
#[picus] | ||
component Count(first: Val) { | ||
public a : Reg; | ||
a := Reg(a@0); | ||
} | ||
|