Post-ra LICM should take care not to hoist an instruction that would clobber a
[oota-llvm.git] / test / CodeGen / X86 / 2012-01-12-extract-sv.ll
1 ; RUN: llc < %s -march=x86 -mcpu=corei7-avx -mattr=+avx -mtriple=i686-pc-win32 | FileCheck %s
2
3 ; CHECK: endless_loop
4 define void @endless_loop() {
5 entry:
6   %0 = load <8 x i32> addrspace(1)* undef, align 32
7   %1 = shufflevector <8 x i32> %0, <8 x i32> undef, <16 x i32> <i32 4, i32 4, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef>
8   %2 = shufflevector <16 x i32> <i32 undef, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 undef>, <16 x i32> %1, <16 x i32> <i32 16, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 17>
9   store <16 x i32> %2, <16 x i32> addrspace(1)* undef, align 64
10   ret void
11 ; CHECK: ret
12 }