[llvm] r316080 - Adding new test for

Michael Zuckerman via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 06:51:31 PDT 2017


Author: mzuckerm
Date: Wed Oct 18 06:51:31 2017
New Revision: 316080

URL: http://llvm.org/viewvc/llvm-project?rev=316080&view=rev
Log:
Adding new test for
bug fix 316067 https://bugs.llvm.org/show_bug.cgi?id=34978

This test checks that the x86-interleaved ends without any
assertion.

Change-Id: I1e970482a4d0404516cbc85517fc091bb21c35a8

Added:
    llvm/trunk/test/CodeGen/X86/x86-interleaved-check.ll

Added: llvm/trunk/test/CodeGen/X86/x86-interleaved-check.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/x86-interleaved-check.ll?rev=316080&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/x86-interleaved-check.ll (added)
+++ llvm/trunk/test/CodeGen/X86/x86-interleaved-check.ll Wed Oct 18 06:51:31 2017
@@ -0,0 +1,15 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-pc-linux -mattr=+avx | FileCheck %s --check-prefix=AVX
+; RUN: llc < %s -mtriple=x86_64-pc-linux -mattr=+avx2 | FileCheck %s --check-prefix=AVX
+; RUN: llc < %s -mtriple=x86_64-pc-linux -mattr=+avx512f -mattr=+avx512bw | FileCheck %s --check-prefix=AVX
+
+define void @validate() {
+; AVX-LABEL: validate:
+; AVX:       # BB#0: # %entry
+entry:
+  %0 = bitcast i8 addrspace(1)* undef to <96 x i8> addrspace(1)*
+  %wide.vec = load <96 x i8>, <96 x i8> addrspace(1)* %0, align 1
+  %strided.vec = shufflevector <96 x i8> %wide.vec, <96 x i8> undef, <32 x i32> <i32 0, i32 3, i32 6, i32 9, i32 12, i32 15, i32 18, i32 21, i32 24, i32 27, i32 30, i32 33, i32 36, i32 39, i32 42, i32 45, i32 48, i32 51, i32 54, i32 57, i32 60, i32 63, i32 66, i32 69, i32 72, i32 75, i32 78, i32 81, i32 84, i32 87, i32 90, i32 93>
+  unreachable
+}
+




More information about the llvm-commits mailing list