blob: 2ac1f8eadbb79ed63cad6f0cfbc4f724b0196924 [file] [log] [blame]
Krzysztof Parzyszeka7c5f042015-10-16 20:38:54 +00001; RUN: llc -march=hexagon -mcpu=hexagonv4 -disable-hsdr < %s | FileCheck %s
Jyotsna Verma7ab68fb2013-02-04 15:52:56 +00002; CHECK: r{{[0-9]}}:{{[0-9]}} = combine({{r[0-9]|#0}}, r{{[0-9]}})
Sirish Pande91856a12012-05-15 16:13:12 +00003; CHECK: r{{[0-9]}}:{{[0-9]}} |= asl(r{{[0-9]}}:{{[0-9]}}, #32)
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:
David Blaikiea79ac142015-02-27 21:17:42 +000011 %0 = load i64, i64* bitcast (%struct.small* @s1 to i64*), align 1
Tony Linthicum1213a7a2011-12-12 21:14:40 +000012 call void @bar(i64 %0)
13 ret void
14}
15
16declare void @bar(i64)