1; RUN: llc -march=hexagon < %s | FileCheck %s 2 3; Check that we generate a proper vinsert instruction for f16 types. 4; CHECK: vinsert 5target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048" 6target triple = "hexagon" 7 8define half* @fred(half* %v0) local_unnamed_addr #0 { 9b0: 10 %t1 = bitcast half* %v0 to <64 x half>* 11 %v1 = load <64 x half>, <64 x half>* %t1, align 2 12 %v2 = insertelement <64 x half> %v1, half 0xH4170, i32 17 13 store <64 x half> %v2, <64 x half>* %t1, align 2 14 %t2 = bitcast <64 x half>* %t1 to half* 15 ret half* %t2 16} 17 18attributes #0 = { norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv69" "target-features"="+hvx-length128b,+hvxv69,+v69,+hvx-qfloat,-long-calls" "unsafe-fp-math"="false" "use-soft-float"="false" } 19