1 ; RUN: llc -march=hexagon < %s | FileCheck %s
3 ; CHECK-LABEL: test_00:
4 ; CHECK: v1:0.h = vunpack(v0.b)
5 define <64 x i16> @test_00(<64 x i8> %v0) #0 {
6 %p = sext <64 x i8> %v0 to <64 x i16>
10 ; CHECK-LABEL: test_01:
11 ; CHECK: v1:0.w = vunpack(v0.h)
12 define <32 x i32> @test_01(<32 x i16> %v0) #0 {
13 %p = sext <32 x i16> %v0 to <32 x i32>
17 ; CHECK-LABEL: test_02:
18 ; CHECK: v1:0.uh = vunpack(v0.ub)
19 define <64 x i16> @test_02(<64 x i8> %v0) #0 {
20 %p = zext <64 x i8> %v0 to <64 x i16>
24 ; CHECK-LABEL: test_03:
25 ; CHECK: v1:0.uw = vunpack(v0.uh)
26 define <32 x i32> @test_03(<32 x i16> %v0) #0 {
27 %p = zext <32 x i16> %v0 to <32 x i32>
31 ; CHECK-LABEL: test_04:
32 ; CHECK-DAG: v[[H40:[0-9]+]]:[[L40:[0-9]+]].h = vunpack(v0.b)
33 ; CHECK: v1:0.w = vunpack(v[[L40]].h)
34 define <16 x i32> @test_04(<64 x i8> %v0) #0 {
35 %x = sext <64 x i8> %v0 to <64 x i32>
36 %p = shufflevector <64 x i32> %x, <64 x i32> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
40 ; CHECK-LABEL: test_05:
41 ; CHECK-DAG: v[[H50:[0-9]+]]:[[L50:[0-9]+]].uh = vunpack(v0.ub)
42 ; CHECK: v1:0.uw = vunpack(v[[L50]].uh)
43 define <16 x i32> @test_05(<64 x i8> %v0) #0 {
44 %x = zext <64 x i8> %v0 to <64 x i32>
45 %p = shufflevector <64 x i32> %x, <64 x i32> undef, <16 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
49 attributes #0 = { nounwind readnone "target-cpu"="hexagonv60" "target-features"="+hvx,+hvx-length64b" }