Skip to content

Commit

Permalink
Correct fr30 comment
Browse files Browse the repository at this point in the history
	* fr30.cpu (f.m4): Replace bogus comment with a better guess
	at what is really going on.
  • Loading branch information
amodra committed Mar 3, 2016
1 parent b3258e6 commit 439baf7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions cpu/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2016-03-03 Alan Modra <[email protected]>

* fr30.cpu (f-m4): Replace bogus comment with a better guess
at what is really going on.

2016-03-02 Alan Modra <[email protected]>

* fr30.cpu (f-m4): Replace -1 << 4 with -16.
Expand Down
8 changes: 5 additions & 3 deletions cpu/fr30.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@
(dnf f-u4c "4 bit 0 extended" () 12 4)
(df f-i4 "4 bit sign extended" () 8 4 INT #f #f)
(df f-m4 "4 bit minus extended" () 8 4 UINT
; ??? This field takes a value in the range [-16,-1] but there
; doesn't seem a way to tell CGEN that. Use an unsigned field and
; disable range checks on insertion by masking. Restore the sign
; on extraction. CGEN generated documentation for insns that use
; this field will be wrong.
((value pc) (and WI value (const #xf)))
; ??? On a 64 bit host this doesn't get completely sign extended
; if the value is recorded in a long, as it is during extraction.
; Various fixes exist, pick one.
((value pc) (or WI value (const -16)))
)
(dnf f-u8 "8 bit unsigned" () 8 8)
Expand Down

0 comments on commit 439baf7

Please sign in to comment.