[PATCH] D58705: [X86] Don't peek through bitcasts before checking ISD::isBuildVectorOfConstantSDNodes in combineTruncatedArithmetic
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 26 18:14:36 PST 2019
craig.topper added a comment.
Compiling this with "-mattr=avx2 -mtriple=i686-unknown-unknown" should be enough to hit the bug. I'll get that turned into a real test case later tonight.
define <8 x i32> @foo(<8 x i64> %x, <4 x i64> %y) {
%a = shufflevector <4 x i64> %y, <4 x i64> <i64 12345, i64 67890, i64 13579, i64 24680>, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
%b = and <8 x i64> %x, %a
%c = trunc <8 x i64> %b to <8 x i32>
ret <8 x i32> %c
}
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58705/new/
https://reviews.llvm.org/D58705
More information about the llvm-commits
mailing list