blob: 5da79ec75e5292b863d50f4815b6b1a9ea12e422 [file] [log] [blame]
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; CHECK: r{{[0-9]+}} = add(##g0,mpyi(r{{[0-9]+}},#24))
%s.0 = type { i32, i32, i32, i32, i32, i8 }
@g0 = common global [2 x %s.0] zeroinitializer, align 8
declare void @f0(ptr)
; Function Attrs: nounwind readnone
define void @f1(i32 %a0) #0 {
b0:
%v0 = getelementptr inbounds [2 x %s.0], ptr @g0, i32 0, i32 %a0
call void @f0(ptr %v0) #1
ret void
}
attributes #0 = { nounwind readnone }
attributes #1 = { nounwind }