[PATCH] D143287: [Clang][x86] Change x86 cast intrinsics to use __builtin_nondeterministic_value
Simon Pilgrim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 8 07:10:04 PST 2023
RKSimon added inline comments.
================
Comment at: clang/test/CodeGen/X86/avx-builtins.c:146
// CHECK-LABEL: test_mm256_castpd128_pd256
- // CHECK: shufflevector <2 x double> %{{.*}}, <2 x double> %{{.*}}, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
+ // CHECK: shufflevector <2 x double> %{{.*}}, <2 x double> %{{.*}}, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
return _mm256_castpd128_pd256(A);
----------------
Would it be useful to add a check for a "freeze <2 x double> poison" (or similar) to each cast test?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143287/new/
https://reviews.llvm.org/D143287
More information about the cfe-commits
mailing list