[MLIR][TOSA] Update CustomOp input and output names (#118408)
[llvm-project.git] / clang / test / CodeGen / X86 / amx_tf32_errors.c
blob45021306921150521e05db450fe593b7e6255fb4
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown \
2 // RUN: -target-feature +amx-tf32 -target-feature +amx-transpose -verify
4 #include <immintrin.h>
5 #include <stddef.h>
7 void test_tile_mmultf32ps() {
8 _tile_mmultf32ps(16, 2, 3); // expected-error {{argument value 16 is outside the valid range [0, 7]}}
9 _tile_mmultf32ps(1, 26, 3); // expected-error {{argument value 26 is outside the valid range [0, 7]}}
10 _tile_mmultf32ps(1, 2, 36); // expected-error {{argument value 36 is outside the valid range [0, 7]}}
11 _tile_mmultf32ps(1, 1, 3); // expected-error {{tile arguments must refer to different tiles}}
12 _tile_mmultf32ps(1, 2, 1); // expected-error {{tile arguments must refer to different tiles}}
13 _tile_mmultf32ps(1, 3, 3); // expected-error {{tile arguments must refer to different tiles}}
16 void test_tile_tmmultf32ps() {
17 _tile_tmmultf32ps(16, 2, 3); // expected-error {{argument value 16 is outside the valid range [0, 7]}}
18 _tile_tmmultf32ps(1, 26, 3); // expected-error {{argument value 26 is outside the valid range [0, 7]}}
19 _tile_tmmultf32ps(1, 2, 36); // expected-error {{argument value 36 is outside the valid range [0, 7]}}
20 _tile_tmmultf32ps(1, 1, 3); // expected-error {{tile arguments must refer to different tiles}}
21 _tile_tmmultf32ps(1, 2, 1); // expected-error {{tile arguments must refer to different tiles}}
22 _tile_tmmultf32ps(1, 2, 2); // expected-error {{tile arguments must refer to different tiles}}