brintos

brintos / llvm-project-archived public Read only

0
0
Text · 778 B · afdce3a Raw
23 lines · plain
1; RUN: llc -mtriple=hexagon -mattr=+duplex -mcpu=hexagonv67t -filetype=obj < %s \2; RUN: -o - | llvm-objdump -d - | FileCheck %s3 4; Check that we generate two memory operations in tiny core if duplexes5; are enabled.6 7; CHECK: memw{{.*}};{{.*}}memw8; CHECK: memw{{.*}};{{.*}}memw9 10define i32 @test(ptr noalias nocapture readonly %a, ptr noalias nocapture readonly %b, i32 %n) local_unnamed_addr #0 {11entry:12  %0 = load i32, ptr %a, align 413  %1 = load i32, ptr %b, align 414  %mul = mul nsw i32 %1, %015  %arrayidx.inc = getelementptr i32, ptr %a, i32 116  %arrayidx1.inc = getelementptr i32, ptr %b, i32 117  %2 = load i32, ptr %arrayidx.inc, align 418  %3 = load i32, ptr %arrayidx1.inc, align 419  %mul.1 = mul nsw i32 %3, %220  %add.1 = add nsw i32 %mul.1, %mul21  ret i32 %add.122}23