1 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mamx-tile -x c -E -dM -o - %s | FileCheck  -check-prefix=AMX-TILE %s
2 
3 // AMX-TILE: #define __AMXTILE__ 1
4 
5 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mamx-bf16 -x c -E -dM -o - %s | FileCheck -check-prefix=AMX-BF16 %s
6 
7 // AMX-BF16: #define __AMXBF16__ 1
8 // AMX-BF16: #define __AMXTILE__ 1
9 
10 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mamx-int8 -x c -E -dM -o - %s | FileCheck -check-prefix=AMX-INT8 %s
11 
12 // AMX-INT8: #define __AMXINT8__ 1
13 // AMX-INT8: #define __AMXTILE__ 1
14 
15 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mno-amx-tile -x c -E -dM -o - %s | FileCheck  -check-prefix=NOAMX-TILE %s
16 
17 // NOAMX-TILE-NOT: #define __AMXTILE__ 1
18 
19 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mno-amx-bf16 -x c -E -dM -o - %s | FileCheck  -check-prefix=NOAMX-BF16 %s
20 
21 // NOAMX-BF16-NOT: #define __AMXBF16__ 1
22 
23 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -amx-bf16 -mno-amx-tile -x c -E -dM -o - %s | FileCheck  -check-prefix=NOAMX-BF16 %s
24 
25 // NOAMX-BF16-NOT: #define __AMXTILE__ 1
26 // NOAMX-BF16-NOT: #define __AMXBF16__ 1
27 
28 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -mno-amx-int8 -x c -E -dM -o - %s | FileCheck  -check-prefix=NOAMX-INT8 %s
29 
30 // NOAMX-INT8-NOT: #define __AMXINT8__ 1
31 
32 // RUN: %clang -target i386-unknown-linux-gnu -march=i386 -amx-int8 -mno-amx-tile -x c -E -dM -o - %s | FileCheck  -check-prefix=NOAMX-INT8 %s
33 
34 // NOAMX-INT8-NOT: #define __AMXTILE__ 1
35 // NOAMX-INT8-NOT: #define __AMXINT8__ 1
36