blob: 11c23b82ec4a2de6fb73748e1f347e00932adf88 [file] [log] [blame]
Krzysztof Parzyszek1adca302016-07-26 18:30:11 +00001; RUN: llc -march=hexagon -disable-hsdr < %s | FileCheck %s
2; CHECK-DAG: r0 = memw
3; CHECK-DAG: r1 = memw
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004
5%struct.small = type { i32, i32 }
6
7@s1 = common global %struct.small zeroinitializer, align 4
8
9define void @foo() nounwind {
10entry:
Krzysztof Parzyszek1adca302016-07-26 18:30:11 +000011 %0 = load i64, i64* bitcast (%struct.small* @s1 to i64*), align 4
Tony Linthicum1213a7a2011-12-12 21:14:40 +000012 call void @bar(i64 %0)
13 ret void
14}
15
16declare void @bar(i64)