File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 28
28
Most SSE scalar float intrinsic operations can be performed more
29
29
efficiently as C language float scalar operations or optimized to
30
30
use vector SIMD operations. We recommend this for new applications. */
31
- #error "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
31
+ #error "Please read comment above. Use -DNO_WARN_X86_INTRINSICS to disable this error."
32
32
#endif
33
33
34
34
#ifndef _XMMINTRIN_H_INCLUDED
62
62
63
63
/* The Intel API is flexible enough that we must allow aliasing with other
64
64
vector types, and their scalar components. */
65
- typedef float __m128 __attribute__ (( __vector_size__ ( 16 ), __may_alias__ ));
65
+ typedef vector float __m128 __attribute__(( __may_alias__ ));
66
66
67
67
/* Unaligned version of the same type. */
68
- typedef float __m128_u __attribute__ ((__vector_size__ (16 ), __may_alias__ ,
69
- __aligned__ (1 )));
68
+ typedef vector float __m128_u __attribute__((__may_alias__ , __aligned__ (1 )));
70
69
71
70
/* Internal data types for implementing the intrinsics. */
72
- typedef float __v4sf __attribute__ (( __vector_size__ ( 16 ))) ;
71
+ typedef vector float __v4sf ;
73
72
74
73
/* Create an undefined vector. */
75
74
extern __inline __m128 __attribute__((__gnu_inline__ , __always_inline__ , __artificial__ ))
Original file line number Diff line number Diff line change 3
3
4
4
// RUN: %clang -S -emit-llvm -target powerpc64-unknown-linux-gnu -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \
5
5
// RUN: -fno-discard-value-names -mllvm -disable-llvm-optzns -o - | llvm-cxxfilt -n | FileCheck %s --check-prefixes=CHECK,CHECK-BE
6
+ // RUN: %clang -x c++ -fsyntax-only -target powerpc64-unknown-linux-gnu -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \
7
+ // RUN: -fno-discard-value-names -mllvm -disable-llvm-optzns
6
8
// RUN: %clang -S -emit-llvm -target powerpc64le-unknown-linux-gnu -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \
7
9
// RUN: -fno-discard-value-names -mllvm -disable-llvm-optzns -o - | llvm-cxxfilt -n | FileCheck %s --check-prefixes=CHECK,CHECK-LE
10
+ // RUN: %clang -x c++ -fsyntax-only -target powerpc64le-unknown-linux-gnu -mcpu=pwr8 -ffreestanding -DNO_WARN_X86_INTRINSICS %s \
11
+ // RUN: -fno-discard-value-names -mllvm -disable-llvm-optzns
8
12
9
13
#include <xmmintrin.h>
10
14
@@ -1426,7 +1430,7 @@ test_mul() {
1426
1430
1427
1431
void __attribute__((noinline ))
1428
1432
test_prefetch () {
1429
- _mm_prefetch (ms , i );
1433
+ _mm_prefetch (ms , _MM_HINT_NTA );
1430
1434
}
1431
1435
1432
1436
// CHECK-LABEL: @test_prefetch
You can’t perform that action at this time.
0 commit comments