forked from OSchip/llvm-project
[Clang] [PowerPC] Fix header include typo in smmintrin.h
The SSE4 header (smmintrin.h) should include SSSE3 (tmmintrin.h) instead of SSE2 (emmintrin.h). Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D111482
This commit is contained in:
parent
771e69484a
commit
2fc0d439a4
|
@ -32,7 +32,7 @@
|
|||
#if defined(__linux__) && defined(__ppc64__)
|
||||
|
||||
#include <altivec.h>
|
||||
#include <emmintrin.h>
|
||||
#include <tmmintrin.h>
|
||||
|
||||
extern __inline int
|
||||
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
|
|
|
@ -145,3 +145,14 @@ test_insert() {
|
|||
// CHECK: %[[R0:[0-9a-zA-Z_.]+]] = and i32 %{{[0-9a-zA-Z_.]+}}, 1
|
||||
// CHECK: %{{[0-9a-zA-Z_.]+}} = insertelement <2 x i64> %{{[0-9a-zA-Z_.]+}}, i64 %{{[0-9a-zA-Z_.]+}}, i32 %[[R0:[0-9a-zA-Z_.]+]]
|
||||
// CHECK: ret <2 x i64> %{{[0-9a-zA-Z_.]+}}
|
||||
|
||||
// To test smmintrin.h includes tmmintrin.h
|
||||
|
||||
void __attribute__((noinline))
|
||||
test_abs_ssse3() {
|
||||
_mm_abs_epi16(m1);
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @test_abs_ssse3
|
||||
|
||||
// CHECK: define available_externally <2 x i64> @_mm_abs_epi16(<2 x i64> {{[0-9a-zA-Z_%.]+}})
|
||||
|
|
Loading…
Reference in New Issue