Skip to content

Commit e3ce462

Browse files
authored
Use volatile attribute for SDOT only, to avoid creating new miscompilations
1 parent b8697b3 commit e3ce462

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kernel/arm64/dot_kernel_asimd.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ 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-
volatile RETURN_TYPE dot = 0.0;
265+
#ifndef DOUBLE
266+
volatile
267+
#endif
268+
RETURN_TYPE dot = 0.0;
266269
BLASLONG j = 0;
267270

268271
__asm__ __volatile__ (

0 commit comments

Comments
 (0)