1 ; RUN: llc -march=hexagon -hexagon-hvx-widen=32 < %s | FileCheck %s
3 ; Make sure that this doesn't crash.
7 target 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"
8 target triple = "hexagon"
10 define dllexport void @f0(i16* %a0, <16 x i16> %a1) local_unnamed_addr #0 {
12 %v0 = getelementptr i16, i16* %a0, i32 undef
13 %v1 = bitcast i16* %v0 to <16 x i16>*
14 %v2 = load <16 x i16>, <16 x i16>* undef, align 2
15 %v3 = icmp sgt <16 x i16> zeroinitializer, %v2
16 %v4 = select <16 x i1> %v3, <16 x i16> %a1, <16 x i16> %v2
17 store <16 x i16> %v4, <16 x i16>* %v1, align 2
21 attributes #0 = { "target-features"="+hvxv66,+hvx-length128b" }