You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
800 B
33 lines
800 B
; RUN: llc -march=hexagon -mcpu=hexagonv67t < %s | FileCheck %s
|
|
|
|
; Another scheduling test for Tiny Core.
|
|
|
|
; CHECK: memw
|
|
; CHECK: }
|
|
; CHECK: memw
|
|
; CHECK: }
|
|
; CHECK: memw
|
|
; CHECK: }
|
|
; CHECK: mpyi
|
|
; CHECK-NOT: }
|
|
; CHECK: memw
|
|
; CHECK: }
|
|
; CHECK: += mpyi
|
|
; CHECK-NOT: }
|
|
; CHECK: jumpr
|
|
; CHECK: }
|
|
|
|
define i32 @test(i32* noalias nocapture readonly %a, i32* noalias nocapture readonly %b, i32 %n) local_unnamed_addr #0 {
|
|
entry:
|
|
%0 = load i32, i32* %a, align 4
|
|
%1 = load i32, i32* %b, align 4
|
|
%mul = mul nsw i32 %1, %0
|
|
%arrayidx.inc = getelementptr i32, i32* %a, i32 1
|
|
%arrayidx1.inc = getelementptr i32, i32* %b, i32 1
|
|
%2 = load i32, i32* %arrayidx.inc, align 4
|
|
%3 = load i32, i32* %arrayidx1.inc, align 4
|
|
%mul.1 = mul nsw i32 %3, %2
|
|
%add.1 = add nsw i32 %mul.1, %mul
|
|
ret i32 %add.1
|
|
}
|