[AVX512] Fix test to produce a defined value

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

llvm-svn: 219872
This commit is contained in:
Adam Nemet 2014-10-15 23:42:11 +00:00
parent 449b3f0931
commit f3aba14dad
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ define i16 @test16(i1 *%addr, i16 %a) {
define i8 @test17(i1 *%addr, i8 %a) { define i8 @test17(i1 *%addr, i8 %a) {
%x = load i1 * %addr, align 128 %x = load i1 * %addr, align 128
%a1 = bitcast i8 %a to <8 x i1> %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 %x2 = bitcast <8 x i1>%x1 to i8
ret i8 %x2 ret i8 %x2
} }