Skip to content

Commit d2333e7

Browse files
author
User User-User
committed
aarch64 fix std=c18 compilation
1 parent d3c0d68 commit d2333e7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ typedef int blasint;
352352
#endif
353353

354354
#if defined(ARMV7) || defined(ARMV6) || defined(ARMV8) || defined(ARMV5)
355-
#define YIELDING asm volatile ("nop;nop;nop;nop;nop;nop;nop;nop; \n");
355+
#define YIELDING __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop; \n");
356356
#endif
357357

358358
#ifdef BULLDOZER

driver/others/dynamic_arm64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extern void openblas_warning(int verbose, const char * msg);
6868
#endif
6969

7070
#define get_cpu_ftr(id, var) ({ \
71-
asm("mrs %0, "#id : "=r" (var)); \
71+
__asm__("mrs %0, "#id : "=r" (var)); \
7272
})
7373

7474
static char *corename[] = {

kernel/arm64/daxpy_thunderx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void daxpy_kernel_8(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *alpha)
6262
y5 = a * x[5] + y[5];
6363
y6 = a * x[6] + y[6];
6464
y7 = a * x[7] + y[7];
65-
asm("":"+w"(y0),"+w"(y1),"+w"(y2),"+w"(y3),"+w"(y4),"+w"(y5),"+w"(y6),"+w"(y7));
65+
__asm__("":"+w"(y0),"+w"(y1),"+w"(y2),"+w"(y3),"+w"(y4),"+w"(y5),"+w"(y6),"+w"(y7));
6666
y[0] = y0;
6767
y[1] = y1;
6868
y[2] = y2;
@@ -74,7 +74,7 @@ static void daxpy_kernel_8(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *alpha)
7474

7575
xx = (x + 4*128/sizeof(*x));
7676
yy = (y + 4*128/sizeof(*y));
77-
asm("":"+r"(yy)::"memory");
77+
__asm__("":"+r"(yy)::"memory");
7878
prefetch(xx);
7979
prefetch(yy);
8080

0 commit comments

Comments
 (0)