Define selection for v4f16, v8f16 scalar_to_vector
[oota-llvm.git] / test / CodeGen / AArch64 / fp16-v8-instructions.ll
index 10a8c22d6f7efde6b30e0a21646c3a122ab109a4..dfad6bc12a17cd84b8926ec39c1cde936bcf1bfb 100644 (file)
@@ -358,4 +358,13 @@ define <8 x half> @uitofp_i64(<8 x i64> %a) #0 {
   ret <8 x half> %1
 }
 
+define void @test_insert_at_zero(half %a, <8 x half>* %b) #0 {
+; CHECK-LABEL: test_insert_at_zero:
+; CHECK-NEXT: str q0, [x0]
+; CHECK-NEXT: ret
+  %1 = insertelement <8 x half> undef, half %a, i64 0
+  store <8 x half> %1, <8 x half>* %b, align 4
+  ret void
+}
+
 attributes #0 = { nounwind }