Skip to content

Commit

Permalink
Fix fmv.w.x's register types
Browse files Browse the repository at this point in the history
  • Loading branch information
TheThirdOne committed Nov 27, 2021
1 parent dce53ad commit f0c874c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PseudoOps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fcvt.d.s f1, f2 ; fcvt.d.s RG1, RG2 , dyn ;#Convert float to do

### TODO: maybe it makes sense to rename the instructions and flip these pseudo-instructions
fmv.x.w t1, f1 ; fmv.x.s RG1, RG2 ;#Move float (New mnemonic): move bits representing a float to an integer register
fmv.w.x t1, f1 ; fmv.s.x RG1, RG2 ;#Move float (New mnemonic): move bits representing a float from an integer register
fmv.w.x f1, t1 ; fmv.s.x RG1, RG2 ;#Move float (New mnemonic): move bits representing a float from an integer register

### GCC compatability
lui t1,%hi(label) ;lui RG1,LH4 ;#Load Upper Address : Set t1 to upper 20-bit label's address
Expand Down

0 comments on commit f0c874c

Please sign in to comment.