1 ; RUN: llc -march=hexagon -disable-hsdr < %s | FileCheck %s
5 ; CHECK-LABEL: halfword:
8 define void @halfword(ptr nocapture %a) nounwind {
10 %0 = load i16, ptr %a, align 2
11 %1 = zext i16 %0 to i64
12 %add.ptr = getelementptr inbounds i16, ptr %a, i32 1
13 %2 = load i16, ptr %add.ptr, align 2
14 %3 = zext i16 %2 to i64
15 %4 = shl nuw nsw i64 %3, 16
17 tail call void @bar(i64 %ins) nounwind
24 define void @byte(ptr nocapture %a) nounwind {
26 %0 = load i8, ptr %a, align 1
27 %1 = zext i8 %0 to i64
28 %add.ptr = getelementptr inbounds i8, ptr %a, i32 1
29 %2 = load i8, ptr %add.ptr, align 1
30 %3 = zext i8 %2 to i64
31 %4 = shl nuw nsw i64 %3, 8
33 tail call void @bar(i64 %ins) nounwind