Skip to content

Commit afcf70d

Browse files
authored
Merge pull request #5691 from martin-frbg/neov2_dotbug
Avoid potential miscompilation of the ARM64 (NeoverseV2) dot kernel
2 parents 7d4a479 + 3f6e928 commit afcf70d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/arm64/dot_kernel_asimd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262262

263263
static RETURN_TYPE dot_kernel_asimd(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
264264
{
265-
RETURN_TYPE dot = 0.0;
265+
volatile RETURN_TYPE dot = 0.0;
266266
BLASLONG j = 0;
267267

268268
__asm__ __volatile__ (

0 commit comments

Comments
 (0)