• Home
  • Raw
  • Download

Lines Matching full:mode

3 // Test checks that 'mode' attribute is handled correctly with enums, i. e. code
4 // 1. "typedef enum { A } __attribute__((mode(HI))) T;" is accepted,
5 // 2. "enum X __attribute__((mode(QI))) var;" forms a complete integer type.
6 // 3. "enum { A } __attribute__((mode(V4SI))) var;" is not accepted (vector mode).
11 // Vector mode are not allowed with enums. in main()
12 …typedef enum { E1 } __attribute__((mode(V4QI))) RejectedType1; // expected-error{{mode 'V4QI' is n… in main()
13 // expected-warning@-1{{specifying vector types with the 'mode' attribute is deprecated}} in main()
14 …typedef enum __attribute__((mode(V8HI))) { E2 } RejectedType2; // expected-error{{mode 'V8HI' is n… in main()
16 …typedef enum E3 __attribute__((mode(V2SI))) RejectedType3; // expected-error{{mode 'V2SI' is not s… in main()
18 …typedef EnumType __attribute__((mode(V4DI))) RejectedType4; // expected-error{{mode 'V4DI' is not … in main()
20 …EnumType v1 __attribute__((mode(V4QI))); // expected-error{{mode 'V4QI' is not supported for enume… in main()
22 …enum __attribute__((mode(V8HI))) { E5 } v2; // expected-error{{mode 'V8HI' is not supported for en… in main()
25 // Incomplete enums without mode attribute are not allowed. in main()
32 // OK with 'mode' attribute. in main()
33 typedef enum Y __attribute__((mode(QI))) CompleteYType1; in main()
34 typedef enum Y CompleteYType2 __attribute__((mode(HI))); in main()
35 typedef enum { A1, B1 } __attribute__((mode(QI))) CompleteType3; in main()
36 typedef enum { A2, B2 } CompleteType4 __attribute__((mode(QI))); in main()
37 typedef enum __attribute__((mode(QI))) { A3, B3 } CompleteType5; in main()
39 enum X __attribute__((mode(QI))) a3; in main()
40 enum X a4 __attribute__((mode(HI))); in main()
41 IncompleteYType __attribute__((mode(QI))) a5; in main()
42 IncompleteYType a6 __attribute__((mode(HI))); in main()
48 enum __attribute__((mode(QI))) { A4, B4 } a12; in main()