SPRUI04F july 2015 – april 2023
Indicates a Memory Dependence
.mdep memref1 ,memref2
The .mdep directive identifies a specific memory dependence.
Following is a description of the .mdep directive parameters:
memref | The symbol parameter is the name of the memory reference. |
The symbol used to name a memory reference has the same syntax restrictions as any assembly symbol. (For more information about symbols, refer to the TMS320C6000 Assembly Language Tools User's Guide.) It is in the same space as the symbolic registers. You cannot use the same name for a symbolic register and annotating a memory reference.
The .mdep directive tells the assembly optimizer that there is a dependence between two memory references.
The .mdep directive is valid only within procedures; that is, within occurrences of the .proc and .endproc directive pair or the .cproc and .endproc directive pair.
Here is an example in which .mdep is used to indicate a dependence between two memory references.
.mdep ld1, st1
LDW *p1++{ld1}, inp1 ;memory reference "ld1"
;other code ...
STW outp2, *p2++{st1} ;memory reference "st1"