1 // RUN: %clang_cc1 -triple i386-unknown-unknown -fsyntax-only -fno-spell-checking -verify %s
2 
3 typedef int v4si __attribute__((vector_size(16)));
4 typedef float v4f __attribute__((vector_size(16)));
5 typedef double v2d __attribute__((vector_size(16)));
6 typedef long long v2ll __attribute__((vector_size(16)));
7 typedef long long v4ll __attribute__((vector_size(32)));
8 typedef long long v8ll __attribute__((vector_size(64)));
call_x86_64_builtins(void)9 void call_x86_64_builtins(void) {
10   unsigned long long *ullp;
11   void *vp;
12   v4f vec4floats;
13   v2d vec2doubles;
14   v2ll vec2longlongs;
15   v4ll vec4longlongs;
16   v8ll vec8longlongs;
17   (void)__builtin_ia32_readeflags_u64();                             // expected-error{{use of unknown builtin}}
18   (void)__builtin_ia32_writeeflags_u64(4);                           // expected-error{{use of unknown builtin}}
19   (void)__builtin_ia32_cvtss2si64(vec4floats);                       // expected-error{{use of unknown builtin}}
20   (void)__builtin_ia32_cvttss2si64(vec4floats);                      // expected-error{{use of unknown builtin}}
21   (void)__builtin_ia32_cvtsd2si64(vec2doubles);                      // expected-error{{use of unknown builtin}}
22   (void)__builtin_ia32_cvttsd2si64(vec2doubles);                     // expected-error{{use of unknown builtin}}
23   (void)__builtin_ia32_crc32di(4, 4);                                // expected-error{{use of unknown builtin}}
24   (void)__builtin_ia32_rdfsbase64();                                 // expected-error{{use of unknown builtin}}
25   (void)__builtin_ia32_rdgsbase64();                                 // expected-error{{use of unknown builtin}}
26   (void)__builtin_ia32_wrfsbase64(4);                                // expected-error{{use of unknown builtin}}
27   (void)__builtin_ia32_wrgsbase64(4);                                // expected-error{{use of unknown builtin}}
28   (void)__builtin_ia32_fxrstor64(vp);                                // expected-error{{use of unknown builtin}}
29   (void)__builtin_ia32_fxsave64(vp);                                 // expected-error{{use of unknown builtin}}
30   (void)__builtin_ia32_xsave64(vp, 4);                               // expected-error{{use of unknown builtin}}
31   (void)__builtin_ia32_xrstor64(vp, 4);                              // expected-error{{use of unknown builtin}}
32   (void)__builtin_ia32_xsaveopt64(vp, 4);                            // expected-error{{use of unknown builtin}}
33   (void)__builtin_ia32_xrstors64(vp, 4);                             // expected-error{{use of unknown builtin}}
34   (void)__builtin_ia32_xsavec64(vp, 4);                              // expected-error{{use of unknown builtin}}
35   (void)__builtin_ia32_xsaves64(vp, 4);                              // expected-error{{use of unknown builtin}}
36   (void)__builtin_ia32_addcarryx_u64(4, 4, 4, ullp);                 // expected-error{{use of unknown builtin}}
37   (void)__builtin_ia32_addcarry_u64(4, 4, 4, ullp);                  // expected-error{{use of unknown builtin}}
38   (void)__builtin_ia32_subborrow_u64(4, 4, 4, ullp);                 // expected-error{{use of unknown builtin}}
39   (void)__builtin_ia32_rdseed64_step(ullp);                          // expected-error{{use of unknown builtin}}
40   (void)__builtin_ia32_bextr_u64(4, 4);                              // expected-error{{use of unknown builtin}}
41   (void)__builtin_ia32_bzhi_di(4, 4);                                // expected-error{{use of unknown builtin}}
42   (void)__builtin_ia32_pdep_di(4, 4);                                // expected-error{{use of unknown builtin}}
43   (void)__builtin_ia32_pext_di(4, 4);                                // expected-error{{use of unknown builtin}}
44   (void)__builtin_ia32_bextri_u64(4, 4);                             // expected-error{{use of unknown builtin}}
45   (void)__builtin_ia32_pbroadcastq512_gpr_mask(4, vec8longlongs, 4); // expected-error{{use of unknown builtin}}
46   (void)__builtin_ia32_pbroadcastq128_gpr_mask(4, vec2longlongs, 4); // expected-error{{use of unknown builtin}}
47   (void)__builtin_ia32_pbroadcastq256_gpr_mask(4, vec4longlongs, 4); // expected-error{{use of unknown builtin}}
48   (void)__builtin_ia32_vcvtsd2si64(vec2doubles, 4);                  // expected-error{{use of unknown builtin}}
49   (void)__builtin_ia32_vcvtsd2usi64(vec2doubles, 4);                 // expected-error{{use of unknown builtin}}
50   (void)__builtin_ia32_vcvtss2si64(vec4floats, 4);                   // expected-error{{use of unknown builtin}}
51   (void)__builtin_ia32_vcvtss2usi64(vec4floats, 4);                  // expected-error{{use of unknown builtin}}
52   (void)__builtin_ia32_vcvttsd2si64(vec2doubles, 4);                 // expected-error{{use of unknown builtin}}
53   (void)__builtin_ia32_vcvttsd2usi64(vec2doubles, 4);                // expected-error{{use of unknown builtin}}
54   (void)__builtin_ia32_vcvttss2si64(vec4floats, 4);                  // expected-error{{use of unknown builtin}}
55   (void)__builtin_ia32_vcvttss2usi64(vec4floats, 4);                 // expected-error{{use of unknown builtin}}
56   (void)__builtin_ia32_cvtsi2sd64(vec2doubles, 4, 4);                // expected-error{{use of unknown builtin}}
57   (void)__builtin_ia32_cvtsi2ss64(vec4floats, 4, 4);                 // expected-error{{use of unknown builtin}}
58   (void)__builtin_ia32_cvtusi2sd64(vec2doubles, 4, 4);               // expected-error{{use of unknown builtin}}
59   (void)__builtin_ia32_cvtusi2ss64(vec4floats, 4, 4);                // expected-error{{use of unknown builtin}}
60 }
61