1 ; RUN: llc -march=hexagon -mcpu=hexagonv67t < %s | FileCheck %s
3 target triple = "hexagon"
5 ; Disable CONST64 for tiny core since it is a memory operation and tiny core has
6 ; only one memory resource per packet.
10 define void @analyze(ptr nocapture %in) local_unnamed_addr {
12 %0 = tail call i64 @llvm.hexagon.M2.mmachs.s1(i64 10230955697128160, i64 10230955697128160, i64 0)
13 store i64 %0, ptr %in, align 8
18 define dso_local void @analyze2(ptr nocapture %in) local_unnamed_addr {
20 %arrayidx = getelementptr inbounds i16, ptr %in, i32 3
21 %0 = load i16, ptr %arrayidx, align 2
22 %conv = sext i16 %0 to i64
23 %1 = tail call i64 @llvm.hexagon.M2.mmacls.s1(i64 undef, i64 30432282833584128, i64 %conv)
24 %arrayidx4 = getelementptr inbounds i16, ptr %in, i32 4
25 store i64 %1, ptr %arrayidx4, align 8
29 ; Function Attrs: nounwind readnone
30 declare i64 @llvm.hexagon.M2.mmachs.s1(i64, i64, i64)
31 declare i64 @llvm.hexagon.M2.mmacls.s1(i64, i64, i64)