projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb7667a
)
[xcc,sim] Eliminated slori instruction
author
Andrew Waterman
<waterman@ubuntu.(none)>
Mon, 23 Aug 2010 04:25:59 +0000
(21:25 -0700)
committer
Andrew Waterman
<waterman@ubuntu.(none)>
Mon, 23 Aug 2010 04:25:59 +0000
(21:25 -0700)
the "li" macro in RISC-V assembly isn't as efficient anymore for 64b
constants, and "la" doesn't work for 64b addresses with ".set noat".
But it's worth it to remove an ugly instruction.
riscv/execute.h
patch
|
blob
|
history
diff --git
a/riscv/execute.h
b/riscv/execute.h
index f5b83af9897e27b815646523f0295f4afab007a4..4386742ae3a8e89d9f93bd6bc683951cac49dd28 100644
(file)
--- a/
riscv/execute.h
+++ b/
riscv/execute.h
@@
-336,11
+336,6
@@
switch((insn.bits >> 0x19) & 0x7f)
#include "insns/lui.h"
break;
}
- case 0x72:
- {
- #include "insns/slori.h"
- break;
- }
case 0x73:
{
switch((insn.bits >> 0xc) & 0x7)