Skip to content

Commit

Permalink
Update ARMConstantTweak to not be greedy and only match exact instruc…
Browse files Browse the repository at this point in the history
…tion names
  • Loading branch information
andrewhop committed Feb 10, 2025
1 parent 4e98212 commit 75c59c3
Show file tree
Hide file tree
Showing 4 changed files with 1,527 additions and 1,468 deletions.
2 changes: 1 addition & 1 deletion util/fipstools/delocate/delocate.peg
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RegisterOrConstant <- (('%'[[A-Z]][[A-Z0-9]]*) /
('#(' [0-9]+ ')') /
ARMRegister)
![fb:(+\-]
ARMConstantTweak <- ((([us] "xt" [xwhb]) / "lsl" / "lsr" / "ror" / "rol" / "asr" / "asl") (WS '#'? Offset)?)/
ARMConstantTweak <- ((([us] "xt" [xwhb]) / ("lsl" / "lsr" / "ror" / "rol" / "asr" / "asl") ![A-Za-z0-9_]) (WS '#'? Offset)?) /
"mul vl" # multiply offset by the hardware's vector length
ARMRegister <- "sp" / ([xwdqshb] [0-9] [0-9]? !(ARMRegisterBoundary)) / "xzr" / "wzr" / "NZCV" / ARMVectorRegister / SVE2PredicateRegister /
('{' WS? ARMVectorRegister WS? ([,\-] WS? ARMVectorRegister)* WS? '}' ('[' [0-9] [0-9]? ']')? )
Expand Down
Loading

0 comments on commit 75c59c3

Please sign in to comment.