From: Adam Nemet Date: Thu, 25 Sep 2014 23:48:47 +0000 (+0000) Subject: [AVX512] Make vextract*x4/vinsert*x4 tests check for the index as well X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f3ccfc25710ca7c1241421649d2aaa850a4894d;p=oota-llvm.git [AVX512] Make vextract*x4/vinsert*x4 tests check for the index as well Extend test so that it provides coverage for the next commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218479 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/avx512-insert-extract.ll b/test/CodeGen/X86/avx512-insert-extract.ll index b360c716b00..5447f1c3737 100644 --- a/test/CodeGen/X86/avx512-insert-extract.ll +++ b/test/CodeGen/X86/avx512-insert-extract.ll @@ -12,9 +12,9 @@ define <16 x float> @test1(<16 x float> %x, float* %br, float %y) nounwind { } ;CHECK-LABEL: test2: -;CHECK: vinsertf32x4 -;CHECK: vextractf32x4 -;CHECK: vinsertf32x4 +;CHECK: vinsertf32x4 $0 +;CHECK: vextractf32x4 $3 +;CHECK: vinsertf32x4 $3 ;CHECK: ret define <8 x double> @test2(<8 x double> %x, double* %br, double %y) nounwind { %rrr = load double* %br @@ -24,8 +24,8 @@ define <8 x double> @test2(<8 x double> %x, double* %br, double %y) nounwind { } ;CHECK-LABEL: test3: -;CHECK: vextractf32x4 -;CHECK: vinsertf32x4 +;CHECK: vextractf32x4 $1 +;CHECK: vinsertf32x4 $0 ;CHECK: ret define <16 x float> @test3(<16 x float> %x) nounwind { %eee = extractelement <16 x float> %x, i32 4 @@ -34,8 +34,8 @@ define <16 x float> @test3(<16 x float> %x) nounwind { } ;CHECK-LABEL: test4: -;CHECK: vextracti32x4 -;CHECK: vinserti32x4 +;CHECK: vextracti32x4 $2 +;CHECK: vinserti32x4 $0 ;CHECK: ret define <8 x i64> @test4(<8 x i64> %x) nounwind { %eee = extractelement <8 x i64> %x, i32 4