150
|
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
|
2 // REQUIRES: powerpc-registered-target
|
|
3 // expected-no-diagnostics
|
|
4
|
|
5 // Don't include mm_malloc.h, it's system specific.
|
|
6 #define _MM_MALLOC_H_INCLUDED
|
|
7
|
|
8 // RUN: %clang -S -emit-llvm -DNO_WARN_X86_INTRINSICS -mcpu=pwr8 -target powerpc64-unknown-linux-gnu %s -Xclang -verify
|
|
9 // RUN: %clang -S -emit-llvm -DNO_WARN_X86_INTRINSICS -mcpu=pwr8 -target powerpc64-unknown-linux-gnu %s -Xclang -verify -x c++
|
|
10
|
|
11 // Since mm_malloc.h references system native stdlib.h, doing cross-compile
|
|
12 // testing may cause unexpected problems. This would affect xmmintrin.h and
|
|
13 // other following intrinsics headers. If there's need to test them using
|
|
14 // cross-compile, please add -ffreestanding to compiler options, like
|
|
15 // test/CodeGen/ppc-xmmintrin.c.
|
|
16
|
|
17 // RUN: not %clang -S -emit-llvm -target powerpc64-unknown-linux-gnu -mcpu=pwr8 %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK-ERROR
|
|
18
|
|
19 #include <mmintrin.h>
|
|
20
|
|
21 // Altivec must be enabled.
|
|
22 #include <xmmintrin.h>
|
|
23 #include <emmintrin.h>
|
|
24 #include <pmmintrin.h>
|
|
25 #include <tmmintrin.h>
|
|
26 #include <smmintrin.h>
|
|
27
|
|
28 // CHECK-ERROR: {{[0-9]+}}:{{[0-9]+}}: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
|