summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/struct_args_large.ll
blob: fb4780b0e5a9276292b33c43edf62270cf5c2ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; XFAIL: *
; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: r[[T0:[0-9]+]] = CONST32(#s2)
; CHECK: memw(r29+#0) = r{{.}}
; CHECK: memw(r29+#8) = r{{.}}

%struct.large = type { i64, i64 }

@s2 = common global %struct.large zeroinitializer, align 8

define void @foo() nounwind {
entry:
  call void @bar(%struct.large* byval @s2)
  ret void
}

declare void @bar(%struct.large* byval)
OpenPOWER on IntegriCloud