1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown \
2 // RUN: -target-feature +amx-complex -fsyntax-only -verify
6 void test_tile_cmmimfp16ps() {
7 _tile_cmmimfp16ps(16, 2, 3); // expected-error {{argument value 16 is outside the valid range [0, 7]}}
8 _tile_cmmimfp16ps(1, 26, 3); // expected-error {{argument value 26 is outside the valid range [0, 7]}}
9 _tile_cmmimfp16ps(1, 2, 36); // expected-error {{argument value 36 is outside the valid range [0, 7]}}
10 _tile_cmmimfp16ps(1, 1, 3); // expected-error {{tile arguments must refer to different tiles}}
13 void test_tile_cmmrlfp16ps() {
14 _tile_cmmrlfp16ps(16, 2, 3); // expected-error {{argument value 16 is outside the valid range [0, 7]}}
15 _tile_cmmrlfp16ps(1, 26, 3); // expected-error {{argument value 26 is outside the valid range [0, 7]}}
16 _tile_cmmrlfp16ps(1, 2, 36); // expected-error {{argument value 36 is outside the valid range [0, 7]}}
17 _tile_cmmrlfp16ps(1, 1, 3); // expected-error {{tile arguments must refer to different tiles}}