Mercurial > hg > CbC > CbC_llvm
diff test/CodeGen/X86/avx512-build-vector.ll @ 77:54457678186b LLVM3.6
LLVM 3.6
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Sep 2014 22:06:00 +0900 |
parents | 95c75e76d11b |
children | 60c9769439b8 |
line wrap: on
line diff
--- a/test/CodeGen/X86/avx512-build-vector.ll Thu Dec 12 15:22:36 2013 +0900 +++ b/test/CodeGen/X86/avx512-build-vector.ll Mon Sep 08 22:06:00 2014 +0900 @@ -15,4 +15,16 @@ define <16 x i32> @test2(<16 x i32> %x) { %res = add <16 x i32><i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>, %x ret <16 x i32>%res +} + +; CHECK-LABEL: test3 +; CHECK: vinsertf128 +; CHECK: vinsertf64x4 +; CHECK: ret +define <16 x float> @test3(<4 x float> %a) { + %b = extractelement <4 x float> %a, i32 2 + %c = insertelement <16 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float undef, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float %b, i32 5 + %b1 = extractelement <4 x float> %a, i32 0 + %c1 = insertelement <16 x float> %c, float %b1, i32 6 + ret <16 x float>%c1 } \ No newline at end of file