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(ptr %a0, <16 x i16> %a1) local_unnamed_addr #0 {
12 %v0 = getelementptr i16, ptr %a0, i32 undef
13 %v2 = load <16 x i16>, ptr undef, align 2
14 %v3 = icmp sgt <16 x i16> zeroinitializer, %v2
15 %v4 = select <16 x i1> %v3, <16 x i16> %a1, <16 x i16> %v2
16 store <16 x i16> %v4, ptr %v0, align 2
20 attributes #0 = { "target-features"="+hvxv66,+hvx-length128b" }