1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.8-library -x hlsl %s -verify
5 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 4 and 128 inclusive; provided argument was 1}}
12 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 4 and 128 inclusive; provided argument was 2}}
19 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 4 and 128 inclusive; provided argument was 7}}
26 // expected-error@+1 {{'WaveSize' attribute argument is invalid: min must not be greater than max}}
33 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 16 and 128 inclusive; provided argument was 8}}
34 [WaveSize(16, 128, 8)]
40 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 8 and 16 inclusive; provided argument was 32}}
47 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 4 and 128 inclusive; provided argument was 0}}
55 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 4 and 128 inclusive; provided argument was 0}}
63 // expected-error@+1 {{'WaveSize' attribute minimum and maximum arguments are equal}}
70 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 4 and 128 inclusive; provided argument was 0}}
77 // expected-error@+1 {{'WaveSize' attribute requires an integer argument which is a constant power of two between 4 and 128 inclusive; provided argument was 4294967292}}
84 // expected-error@+1 {{'WaveSize' attribute takes no more than 3 arguments}}
85 [WaveSize(16, 128, 64, 64)]
91 // expected-error@+1 {{'WaveSize' attribute takes at least 1 argument}}
98 // expected-error@+1 {{'WaveSize' attribute takes at least 1 argument}}
106 // expected-error@+1 {{'WaveSize' attribute parameters do not match the previous declaration}}
108 // expected-note@+1 {{conflicting attribute is here}}