
This patch relands #67410 and fixes the cmpfail below: #include <immintrin.h> __attribute__((target("avx"))) void test(__m128 a, __m128 b) { _mm_cmp_ps(a, b, 14); } According to Intel SDM, SSE/SSE2 instructions cmp[p|s][s|d] are supported when imm8 is in range of [0, 7]
12 lines
347 B
C
12 lines
347 B
C
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown-emit-llvm -o /dev/null -verify
|
|
// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown-emit-llvm -o /dev/null -verify
|
|
|
|
// expected-no-diagnostics
|
|
|
|
#include <immintrin.h>
|
|
|
|
__attribute__((target("avx")))
|
|
__m128 test(__m128 a, __m128 b) {
|
|
return _mm_cmp_ps(a, b, 14);
|
|
}
|