24 lines · plain
1; RUN: llc -filetype=obj -mtriple=hexagon %s -o - | llvm-objdump -r - | FileCheck %s2 3; CHECK: RELOCATION RECORDS FOR [.text]:4; CHECK: 00000000 R_HEX_B22_PCREL printf5; CHECK: 00000004 R_HEX_32_6_X .rodata.str1.16; CHECK: 00000008 R_HEX_6_X .rodata.str1.17 8target triple = "hexagon-unknown--elf"9 10@.str = private unnamed_addr constant [10 x i8] c"cxfir.log\00", align 111 12declare i32 @printf(ptr, ...) #113 14; Function Attrs: nounwind15define i32 @main() #0 {16entry:17 %call = call i32 (ptr, ...) @printf(ptr @.str)18 ret i32 019}20 21attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }22attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }23 24