brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · 239c1b5 Raw
23 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; CHECK: r{{[0-9]+}} = add(##g0{{.*}},mpyi(r{{[0-9]+}},r{{[0-9]+}}))3 4%s.0 = type { %s.1, ptr }5%s.1 = type { i8, i8, i8, i8, i16, i16, i8, [3 x i8], [20 x %s.2] }6%s.2 = type { i8, i8, [2 x i8], [2 x i8] }7 8@g0 = external global [2 x %s.0]9 10declare void @f0(ptr)11 12; Function Attrs: nounwind readnone13define void @f1(i32 %a0) #0 {14b0:15  %v0 = getelementptr inbounds [2 x %s.0], ptr @g0, i32 0, i32 %a016  %v1 = getelementptr inbounds %s.0, ptr %v0, i32 0, i32 117  call void @f0(ptr %v1) #118  ret void19}20 21attributes #0 = { nounwind readnone }22attributes #1 = { nounwind }23