Adds examples/1652-platform-asm-indirect-mem.sx exercising a `=*m -> @x`
indirect-memory place output. Currently rejected loudly at lowering
("not yet implemented"); this locks that behavior as a passing test.
The next commit implements indirect-memory outputs and flips this
example to run end-to-end (store-through-pointer → 42).
20 lines
490 B
Plaintext
20 lines
490 B
Plaintext
error: indirect-memory (`*`) asm outputs are not yet implemented
|
|
--> examples/1652-platform-asm-indirect-mem.sx:9:5
|
|
|
|
|
9 | asm volatile {
|
|
| ^^^^^^^^^^^^^^
|
|
10 | #string ASM
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
11 | mov x9, #42
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
12 | str x9, %[out]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
13 | ASM,
|
|
| ^^^^
|
|
14 | [out] "=*m" -> @x,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
15 | clobbers(.x9),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
16 | };
|
|
| ^^^^^
|