Skip to content

Commit

Permalink
grammar: fix TypeBoolean (#96)
Browse files Browse the repository at this point in the history
* grammar: fix TypeBoolean

was previously missing quotation marks.

* tests: add opcode with emitting boolean variable
  • Loading branch information
katrinafyi authored Jul 3, 2024
1 parent 91693e0 commit 66ba70b
Show file tree
Hide file tree
Showing 4 changed files with 456 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libASL/Semantics.g4
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type_register_slices:

type:
'Type_Bits' OPEN_PAREN expr CLOSE_PAREN # TypeBits
| 'Type_Constructor(boolean)' # TypeBoolean
| 'Type_Constructor("boolean")' # TypeBoolean
| 'Type_Constructor(' ident ')' # TypeConstructor
| 'Type_Register' OPEN_PAREN QUOTE width=integer QUOTE type_register_slices CLOSE_PAREN # TypeRegister
;
Expand Down
3 changes: 3 additions & 0 deletions tests/aslt/ops.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@

// cnt v0.8b, v0.8b https://github.com/UQ-PAC/aslp/issues/43
0x0e205800

// sqrdmulh v0.8h, v0.8h, v1.h[3] https://github.com/UQ-PAC/aslp/pull/96
0x4f71d000
Loading

0 comments on commit 66ba70b

Please sign in to comment.