[all-commits] [llvm/llvm-project] fc0fc7: [X86] Finally handle target of __builtin_ia32_cmp[...
Freddy Ye via All-commits
all-commits at lists.llvm.org
Fri Mar 8 21:49:38 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc0fc768cc2122c81fd37aa59d9f31fc0d5694d8
https://github.com/llvm/llvm-project/commit/fc0fc768cc2122c81fd37aa59d9f31fc0d5694d8
Author: Freddy Ye <freddy.ye at intel.com>
Date: 2024-03-09 (Sat, 09 Mar 2024)
Changed paths:
M clang/include/clang/Basic/BuiltinsX86.def
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/Headers/avxintrin.h
M clang/lib/Headers/emmintrin.h
M clang/lib/Headers/xmmintrin.h
A clang/test/CodeGen/X86/attribute-cmpsd-no-error.c
M clang/test/CodeGen/X86/avx-builtins.c
A clang/test/CodeGen/X86/cmp-avx-builtins-error.c
M clang/test/CodeGen/X86/sse-builtins.c
M clang/test/CodeGen/X86/sse2-builtins.c
M clang/test/CodeGen/target-features-error-2.c
Log Message:
-----------
[X86] Finally handle target of __builtin_ia32_cmp[p|s][s|d] from avx into sse/sse2/avx (#84136)
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]
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list