Skip to content

output *memory* operands need their address as *input*

Luc Van Oostenryck linux-sparse 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3asm: add testcase for problem with output addressesvalidation/linear/asm-out0.c+26 -00 replies
2/3asm: factor out add_asm_rule() from add_asm_{in,out}put()linearize.c+12 -110 replies
3/3asm: output *memory* operands need their address as *input*linearize.c validation/linear/asm-out0.c+23 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] output *memory* operands need their address as *input*

These patches fix a problem with the linearization of asm statements with output memory operands. These operands need to have their address generated before the asm instruction but was generated after it.

Note: the problem wasn't visible when the address was a symbol
because the OP_SYMADDR producing the address is simplified away at some later stage with the symbol directly handled by the memory operation.

Luc Van Oostenryck (3):
asm: add testcase for problem with output addresses
asm: factor out add_asm_rule() from add_asm_{in,out}put()
asm: output *memory* operands need their address as *input*

 linearize.c                  | 54 +++++++++++++++++++++++-------------
 validation/linear/asm-out0.c | 25 +++++++++++++++++
 2 files changed, 60 insertions(+), 19 deletions(-)
 create mode 100644 validation/linear/asm-out0.c

base-commit: 60c1f2706e30eacc29296e6cb5d9327c85a01340

Signature · 1 line
2.30.0