29 lines · c
1// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py2// REQUIRES: powerpc-registered-target3// expected-no-diagnostics4 5// Don't include mm_malloc.h, it's system specific.6#define _MM_MALLOC_H_INCLUDED7 8// RUN: %clang -S -emit-llvm -DNO_WARN_X86_INTRINSICS -mcpu=pwr8 -target powerpc64-unknown-linux-gnu %s -Xclang -verify9// 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-compile12// testing may cause unexpected problems. This would affect xmmintrin.h and13// other following intrinsics headers. If there's need to test them using14// cross-compile, please add -ffreestanding to compiler options, like15// 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-ERROR18 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."29