1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=avx2 | FileCheck %s
4 ; Make sure this sequence doesn't hang in DAG combine.
6 define <8 x i32> @foo(<8 x i64> %x, <4 x i64> %y) {
9 ; CHECK-NEXT: vandps %ymm2, %ymm0, %ymm0
10 ; CHECK-NEXT: vandps {{\.LCPI.*}}, %ymm1, %ymm1
11 ; CHECK-NEXT: vextractf128 $1, %ymm0, %xmm2
12 ; CHECK-NEXT: vshufps {{.*#+}} xmm0 = xmm0[0,2],xmm2[0,2]
13 ; CHECK-NEXT: vextractf128 $1, %ymm1, %xmm2
14 ; CHECK-NEXT: vshufps {{.*#+}} xmm1 = xmm1[0,2],xmm2[0,2]
15 ; CHECK-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
17 %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>
18 %b = and <8 x i64> %x, %a
19 %c = trunc <8 x i64> %b to <8 x i32>