2015-06-16 05:57:41 +08:00
|
|
|
; RUN: llc -march=hexagon -filetype=obj -o - < %s | llvm-readobj -relocations | FileCheck %s
|
2015-06-16 05:52:13 +08:00
|
|
|
|
|
|
|
declare void @bar(i32);
|
|
|
|
|
|
|
|
define void @foo(i32 %a) {
|
|
|
|
%b = mul i32 %a, 3
|
|
|
|
call void @bar(i32 %b)
|
|
|
|
ret void
|
|
|
|
}
|
2015-10-20 01:46:01 +08:00
|
|
|
; CHECK: 0x4 R_HEX_B22_PCREL bar 0x4
|