[AVX512] Fix test to produce a defined value
authorAdam Nemet <anemet@apple.com>
Wed, 15 Oct 2014 23:42:11 +0000 (23:42 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 15 Oct 2014 23:42:11 +0000 (23:42 +0000)
We're inserting into a 8 wide vector, so the index should be < 8.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219872 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/avx512-insert-extract.ll

index 5447f1c3737deca6bb8a04db591d58d3966f7b25..2aff7c75bc35ab9c98e6ed95f485c47e0967ff98 100644 (file)
@@ -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
 }