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