1 ; RUN: llc -O2 -march=hexagon < %s -debug-only=packets 2>&1 | FileCheck %s
4 ; CHECK: Finalizing packet:
5 ; CHECK-NEXT: * [res:0x4] renamable $r1 = S2_vsplatrb renamable $r0
6 ; CHECK-NEXT: * [res:0x8] renamable $d1 = S2_vsplatrh killed renamable $r0
8 target triple = "hexagon"
10 ; Function Attrs: nounwind readnone
11 define i64 @f0(i64 %a0) #0 {
13 %v0 = trunc i64 %a0 to i32
14 %v1 = and i32 %v0, 65535
15 %v2 = tail call i64 @llvm.hexagon.S2.vsplatrh(i32 %v1)
16 %v3 = and i32 %v0, 255
17 %v4 = tail call i32 @llvm.hexagon.S2.vsplatrb(i32 %v3)
18 %v5 = sext i32 %v4 to i64
19 %v6 = add nsw i64 %v5, %v2
23 ; Function Attrs: nounwind readnone
24 declare i64 @llvm.hexagon.S2.vsplatrh(i32) #0
26 ; Function Attrs: nounwind readnone
27 declare i32 @llvm.hexagon.S2.vsplatrb(i32) #0
29 attributes #0 = { nounwind readnone }