CACHE_ZERO

Purpose

The CACHE_ZERO directive invokes the machine instruction, data cache block set to zero (dcbz). This instruction sets the data cache block corresponding to the variables you specify to zero. Use this directive with discretion.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-CACHE_ZERO--(--cv_var_list--)-------------------------------><

cv_var
is a variable associated with the cache block that is set to zero. The variable must be a data object with a determinable storage address. The variable cannot be a procedure name, subroutine name, module name, Fortran 2008 beginssubmodule nameFortran 2008 ends, function name, constant, label, zero-sized string, or an array with vector subscripts.

Examples

In the following example, assume that array ARRA has already been loaded into a cache block that you want to set to zero. The data in the cache block is then set to zero.

   real(4) :: arrA(2**5)
 ! ....
 !IBM* CACHE_ZERO(arrA(1))             ! set data in cache block to zero