[llvm] r219872 - [AVX512] Fix test to produce a defined value

Adam Nemet anemet at apple.com
Wed Oct 15 16:42:12 PDT 2014


Author: anemet
Date: Wed Oct 15 18:42:11 2014
New Revision: 219872

URL: http://llvm.org/viewvc/llvm-project?rev=219872&view=rev
Log:
[AVX512] Fix test to produce a defined value

We're inserting into a 8 wide vector, so the index should be < 8.

Modified:
    llvm/trunk/test/CodeGen/X86/avx512-insert-extract.ll

Modified: llvm/trunk/test/CodeGen/X86/avx512-insert-extract.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/avx512-insert-extract.ll?rev=219872&r1=219871&r2=219872&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/avx512-insert-extract.ll (original)
+++ llvm/trunk/test/CodeGen/X86/avx512-insert-extract.ll Wed Oct 15 18:42:11 2014
@@ -191,7 +191,7 @@ define i16 @test16(i1 *%addr, i16 %a) {
 define i8 @test17(i1 *%addr, i8 %a) {
   %x = load i1 * %addr, align 128
   %a1 = bitcast i8 %a to <8 x i1>
-  %x1 = insertelement <8 x i1> %a1, i1 %x, i32 10
+  %x1 = insertelement <8 x i1> %a1, i1 %x, i32 4
   %x2 = bitcast <8 x i1>%x1 to i8
   ret i8 %x2
 }





More information about the llvm-commits mailing list