llvm-for-llvmta/test/CodeGen/Hexagon/simple_addend.ll

11 lines
238 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -march=hexagon -filetype=obj -o - < %s | llvm-readobj -r - | FileCheck %s
declare void @bar(i32);
define void @foo(i32 %a) {
%b = mul i32 %a, 3
call void @bar(i32 %b)
ret void
}
; CHECK: 0x4 R_HEX_B22_PCREL bar 0x4