brintos

brintos / llvm-project-archived public Read only

0
0
Text · 428 B · 1ebb6f7 Raw
17 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; This used to crash with "cannot select" error.4; CHECK: vlsrh(r1:0,#4)5 6target triple = "hexagon-unknown-linux-gnu"7 8define <2 x i16> @foo(ptr nocapture %v) nounwind {9  %vec = load <2 x i32>, ptr %v, align 810  %trunc = trunc <2 x i32> %vec to <2 x i16>11  %r = lshr <2 x i16> %trunc, <i16 4, i16 4>12  ret <2 x i16> %r13}14 15attributes #0 = { nounwind "target-cpu"="hexagonv60" }16 17