annotate clang/test/Headers/ppc-intrinsics.c @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
anatofuz
parents:
diff changeset
2 // REQUIRES: powerpc-registered-target
anatofuz
parents:
diff changeset
3 // expected-no-diagnostics
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // Don't include mm_malloc.h, it's system specific.
anatofuz
parents:
diff changeset
6 #define _MM_MALLOC_H_INCLUDED
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // RUN: %clang -S -emit-llvm -DNO_WARN_X86_INTRINSICS -mcpu=pwr8 -target powerpc64-unknown-linux-gnu %s -Xclang -verify
anatofuz
parents:
diff changeset
9 // RUN: %clang -S -emit-llvm -DNO_WARN_X86_INTRINSICS -mcpu=pwr8 -target powerpc64-unknown-linux-gnu %s -Xclang -verify -x c++
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // Since mm_malloc.h references system native stdlib.h, doing cross-compile
anatofuz
parents:
diff changeset
12 // testing may cause unexpected problems. This would affect xmmintrin.h and
anatofuz
parents:
diff changeset
13 // other following intrinsics headers. If there's need to test them using
anatofuz
parents:
diff changeset
14 // cross-compile, please add -ffreestanding to compiler options, like
anatofuz
parents:
diff changeset
15 // test/CodeGen/ppc-xmmintrin.c.
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 #include <mmintrin.h>
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // Altivec must be enabled.
anatofuz
parents:
diff changeset
22 #include <xmmintrin.h>
anatofuz
parents:
diff changeset
23 #include <emmintrin.h>
anatofuz
parents:
diff changeset
24 #include <pmmintrin.h>
anatofuz
parents:
diff changeset
25 #include <tmmintrin.h>
anatofuz
parents:
diff changeset
26 #include <smmintrin.h>
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 // CHECK-ERROR: {{[0-9]+}}:{{[0-9]+}}: error: "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."