Skip to content

Commit

Permalink
Fix #109 sha256sig1 result should be EXTS, not EXTZ
Browse files Browse the repository at this point in the history
 On branch dev/next-release
 Your branch is up-to-date with 'origin/dev/next-release'.

 Changes to be committed:
	modified:   insns/sha256sig1.adoc
	modified:   ../../extern/sail-riscv

 Changes not staged for commit:
	modified:   ../../extern/riscv-gnu-toolchain (modified content)
	modified:   ../../extern/sail-riscv (untracked content)
  • Loading branch information
ben-marshall committed Aug 27, 2021
1 parent 807504a commit a255d6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/scalar/insns/sha256sig1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Operation::
function clause execute (SHA256SIG1(rs1,rd)) = {
let inb : bits(32) = X(rs1)[31..0];
let result : bits(32) = ror32(inb, 17) ^ ror32(inb, 19) ^ (inb >> 10);
X(rd) = EXTZ(result);
X(rd) = EXTS(result);
RETIRE_SUCCESS
}
--
Expand Down
2 changes: 1 addition & 1 deletion extern/sail-riscv

0 comments on commit a255d6e

Please sign in to comment.