1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[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 a3b1e47840
commit 517a59b132

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
} }