Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:mode

9   // Check that non-vector 'mode' attribute is OK with enumeration types.
10 typedef T __attribute__((mode(QI))) T1;
11 typedef T T2 __attribute__((mode(HI)));
12 typedef T __attribute__((mode(V8SI))) T3; // expected-error{{mode 'V8SI' is not supported for enumeration types}}
13 // expected-warning@-1{{specifying vector types with the 'mode' attribute is deprecated}}
15 typedef enum __attribute__((mode(HI))) { A4, B4 } T4;
16 typedef enum { A5, B5 } __attribute__((mode(SI))) T5;
17 typedef enum __attribute__((mode(V2SI))) { A6, B6 } T6; // expected-error{{mode 'V2SI' is not supported for enumeration types}}
19 typedef enum { A7, B7 } __attribute__((mode(V2QI))) T7; // expected-error{{mode 'V2QI' is not supported for enumeration types}}
27 typedef T __attribute__((mode(QI))) T1; // expected-error{{mode attribute only supported for integer and floating-point types}}
28 typedef T __attribute__((mode(V2SI))) VT1; // expected-error{{mode attribute only supported for integer and floating-point types}}
29 // expected-warning@-1{{specifying vector types with the 'mode' attribute is deprecated}}
36 typedef T __attribute__((mode(QI))) T1; // expected-error{{type of machine mode does not match type of base type}}
37 typedef T __attribute__((mode(HI))) T2; // expected-error{{type of machine mode does not match type of base type}}
38 typedef T __attribute__((mode(SI))) T3; // expected-error{{type of machine mode does not match type of base type}}
39 typedef T __attribute__((mode(DI))) T4; // expected-error{{type of machine mode does not match type of base type}}
40 typedef T __attribute__((mode(SF))) T5; // expected-error2{{type of machine mode does not match type of base type}}
41 typedef T __attribute__((mode(DF))) T6; // expected-error2{{type of machine mode does not match type of base type}}
42 typedef T __attribute__((mode(II))) T7; // expected-error{{unknown machine mode}}
43 typedef T __attribute__((mode(12))) T8; // expected-error{{'mode' attribute requires an identifier}}
48 void CheckParameters(T1 __attribute__((mode(SI))) paramSI, // expected-note2{{ignored: substitution failure}}
49 T1 __attribute__((mode(V4DI))) paramV4DI, // expected-warning{{deprecated}}
50 T2 __attribute__((mode(SF))) paramSF,
51 T2 __attribute__((mode(V4DF))) paramV4DF) { // expected-warning{{deprecated}}
59 T __attribute__((mode(HI))) x1;
60 T __attribute__((mode(V4HI))) x2; // expected-error{{mode 'V4HI' is not supported for enumeration types}}
64 typedef T __attribute__((mode(DI))) T1;
65 typedef T __attribute__((mode(V8DI))) T2; // expected-error{{mode 'V8DI' is not supported for enumeration types}}
69 void f1(T __attribute__((mode(QI))) x) {}
70 void f2(T __attribute__((mode(SF))) x) {} // expected-error2{{type of machine mode does not match type of base type}}
71 void f3(T __attribute__((mode(V4QI))) x) {} // expected-error{{mode 'V4QI' is not supported for enumeration types}}
75 __attribute__((mode(QI))) T g1() { return 0; } // expected-error{{'mode' attribute only applies to variables, enums, fields and typedefs}}
87 // 'II' mode is unknown, no matter what we instantiate with.
92 int __attribute__((mode(V4DI))) valV4DI; // expected-warning{{deprecated}}
93 float __attribute__((mode(V4DF))) valV4DF; // expected-warning{{deprecated}}
96 // Enumeral type with vector mode is invalid.
98 // 'V4DF' mode with 'int' type is invalid.