2012-05-16 00:13:12 +08:00
|
|
|
; RUN: llc -march=hexagon -mcpu=hexagonv4 < %s | FileCheck %s
|
2013-02-04 23:52:56 +08:00
|
|
|
; CHECK: r{{[0-9]}}:{{[0-9]}} = combine({{r[0-9]|#0}}, r{{[0-9]}})
|
2012-05-16 00:13:12 +08:00
|
|
|
; CHECK: r{{[0-9]}}:{{[0-9]}} |= asl(r{{[0-9]}}:{{[0-9]}}, #32)
|
2011-12-13 05:14:40 +08:00
|
|
|
|
|
|
|
%struct.small = type { i32, i32 }
|
|
|
|
|
|
|
|
@s1 = common global %struct.small zeroinitializer, align 4
|
|
|
|
|
|
|
|
define void @foo() nounwind {
|
|
|
|
entry:
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i64, i64* bitcast (%struct.small* @s1 to i64*), align 1
|
2011-12-13 05:14:40 +08:00
|
|
|
call void @bar(i64 %0)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @bar(i64)
|