Fix bug while building FP16 constant vectors for AArch64
[oota-llvm.git] / test / CodeGen / AArch64 / fp16-v4-instructions.ll
index f2945a1a072a0e5b4bfed6dcf6932245632d2f85..6db4e9745dac5edf62cc80ce8cdb8af6e3c48688 100644 (file)
@@ -12,6 +12,15 @@ entry:
 }
 
 
+define <4 x half> @build_h4(<4 x half> %a) {
+entry:
+; CHECK-LABEL: build_h4:
+; CHECK: movz [[GPR:w[0-9]+]], #0x3ccd
+; CHECK: dup v0.4h, [[GPR]]
+  ret <4 x half> <half 0xH3CCD, half 0xH3CCD, half 0xH3CCD, half 0xH3CCD>
+}
+
+
 define <4 x half> @sub_h(<4 x half> %a, <4 x half> %b) {
 entry:
 ; CHECK-LABEL: sub_h: