brintos

brintos / llvm-project-archived public Read only

0
0
Text · 346 B · 01ec848 Raw
19 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; CHECK: r0 = add(r0,r1)3 4; Allow simple structures to be returned by value.5 6%s = type { i32, i32 }7 8declare %s @foo() #09 10define i32 @fred() #0 {11  %t0 = call %s @foo()12  %x = extractvalue %s %t0, 013  %y = extractvalue %s %t0, 114  %r = add i32 %x, %y15  ret i32 %r16}17 18attributes #0 = { nounwind }19