Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into fix/empty-lines
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Apr 5, 2024
2 parents 1e29e6b + 41f39c4 commit 444b23d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parser_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var (
symbolLine = regexp.MustCompile(`^\w+\s+<\w+>:$`)
dataLine = regexp.MustCompile(`^\w+:\s+\w+\s+.+$`)

registers = []string{"DI", "SI", "DX", "CX"}
registers = []string{"DI", "SI", "DX", "CX", "R8", "R9", "R10", "R11"}
)

type Line struct {
Expand Down
2 changes: 1 addition & 1 deletion parser_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var (
symbolLine = regexp.MustCompile(`^\w+\s+<\w+>:$`)
dataLine = regexp.MustCompile(`^\w+:\s+\w+\s+.+$`)

registers = []string{"R0", "R1", "R2", "R3"}
registers = []string{"R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7"}
)

type Line struct {
Expand Down
File renamed without changes.
14 changes: 14 additions & 0 deletions tests/mat_mul.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
void mat_mul(float *a, float *b, float *res, long d1, long d2, long d3)
{
// add the remaining vectors
for (int i = 0; i < d1; i++)
{
for (int j = 0; j < d3; j++) {
float sum = 0;
for (int k = 0; k < d2; k++) {
sum += a[i * d2 + k] * b[k * d3 + j];
}
res[i * d3 + j] = sum;
}
}
}

0 comments on commit 444b23d

Please sign in to comment.