From d2070b00efb97ee32e360d53edfd7bf6de88d62c Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Thu, 12 Jan 2012 15:31:55 +0000 Subject: Fix a bug in the AVX 256-bit shuffle code in cases where the splat element is on the boundary of two 128-bit vectors. The attached testcase was stuck in an endless loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148027 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2012-01-12-extract-sv.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/CodeGen/X86/2012-01-12-extract-sv.ll (limited to 'test/CodeGen/X86/2012-01-12-extract-sv.ll') diff --git a/test/CodeGen/X86/2012-01-12-extract-sv.ll b/test/CodeGen/X86/2012-01-12-extract-sv.ll new file mode 100644 index 0000000000..fa8e80f0bd --- /dev/null +++ b/test/CodeGen/X86/2012-01-12-extract-sv.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=x86 -mcpu=corei7-avx -mattr=+avx -mtriple=i686-pc-win32 | FileCheck %s + +; CHECK: endless_loop +define void @endless_loop() { +entry: + %0 = load <8 x i32> addrspace(1)* undef, align 32 + %1 = shufflevector <8 x i32> %0, <8 x i32> undef, <16 x i32> + %2 = shufflevector <16 x i32> , <16 x i32> %1, <16 x i32> + store <16 x i32> %2, <16 x i32> addrspace(1)* undef, align 64 + ret void +; CHECK: ret +} -- cgit v1.2.3