1 ; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
5 define void @word(i32* nocapture %a) nounwind {
7 %0 = load i32* %a, align 4, !tbaa !0
8 %1 = zext i32 %0 to i64
9 tail call void @bar(i64 %1) nounwind
13 declare void @bar(i64)
18 define void @halfword(i16* nocapture %a) nounwind {
20 %0 = load i16* %a, align 2, !tbaa !3
21 %1 = zext i16 %0 to i64
22 %add.ptr = getelementptr inbounds i16* %a, i32 1
23 %2 = load i16* %add.ptr, align 2, !tbaa !3
24 %3 = zext i16 %2 to i64
25 %4 = shl nuw nsw i64 %3, 16
27 tail call void @bar(i64 %ins) nounwind
34 define void @byte(i8* nocapture %a) nounwind {
36 %0 = load i8* %a, align 1, !tbaa !1
37 %1 = zext i8 %0 to i64
38 %add.ptr = getelementptr inbounds i8* %a, i32 1
39 %2 = load i8* %add.ptr, align 1, !tbaa !1
40 %3 = zext i8 %2 to i64
41 %4 = shl nuw nsw i64 %3, 8
43 tail call void @bar(i64 %ins) nounwind
47 !0 = metadata !{metadata !"int", metadata !1}
48 !1 = metadata !{metadata !"omnipotent char", metadata !2}
49 !2 = metadata !{metadata !"Simple C/C++ TBAA"}
50 !3 = metadata !{metadata !"short", metadata !1}