Merge pull request #1360 from larsclausen/vvp-case-cmp-e

tgt-vvp: Use `%cmp/e` instead of `%cmp/u` for `case` comparisons
This commit is contained in:
Cary R. 2026-05-15 07:47:46 -07:00 committed by GitHub
commit 73ae5bd1db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001-2021 Stephen Williams (steve@icarus.com)
* Copyright (c) 2001-2026 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@ -671,7 +671,7 @@ static int show_stmt_case(ivl_statement_t net, ivl_scope_t sscope)
switch (ivl_statement_type(net)) {
case IVL_ST_CASE:
fprintf(vvp_out, " %%cmp/u;\n");
fprintf(vvp_out, " %%cmp/e;\n");
fprintf(vvp_out, " %%jmp/1 T_%u.%u, 6;\n",
thread_count, local_base+idx);
break;