blob: af099cdc43c7c21502861fa569debbdb1e8be112 [file] [log] [blame]
Tony Linthicum1213a7a2011-12-12 21:14:40 +00001; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
2; CHECK: r[[T0:[0-9]+]] = CONST32(#s2)
3; CHECK: r[[T1:[0-9]+]] = memw(r[[T0]] + #0)
4; CHECK: memw(r29 + #0) = r[[T1]]
5
6%struct.large = type { i64, i64 }
7
8@s2 = common global %struct.large zeroinitializer, align 8
9
10define void @foo() nounwind {
11entry:
12 call void @bar(%struct.large* byval @s2)
13 ret void
14}
15
16declare void @bar(%struct.large* byval)