| 1 |
; RUN: llc -filetype=obj -march=hexagon %s -o - | llvm-objdump -r - | FileCheck %s |
| 2 |
|
| 3 |
; CHECK: RELOCATION RECORDS FOR [.text]: |
| 4 |
; CHECK: 00000000 R_HEX_B22_PCREL printf |
| 5 |
; CHECK: 00000004 R_HEX_32_6_X .rodata.str1.1 |
| 6 |
; CHECK: 00000008 R_HEX_6_X .rodata.str1.1 |
| 7 |
|
| 8 |
target triple = "hexagon-unknown--elf" |
| 9 |
|
| 10 |
@.str = private unnamed_addr constant [10 x i8] c"cxfir.log\00", align 1 |
| 11 |
|
| 12 |
declare i32 @printf(ptr, ...) #1 |
| 13 |
|
| 14 |
; Function Attrs: nounwind |
| 15 |
define i32 @main() #0 { |
| 16 |
entry: |
| 17 |
%call = call i32 (ptr, ...) @printf(ptr @.str) |
| 18 |
ret i32 0 |
| 19 |
} |
| 20 |
|
| 21 |
attributes #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" } |
| 22 |
attributes #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 |
|