annotate test/MC/Hexagon/extended_relocations.ll @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents
children c2174574ed3a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc -filetype=obj -march=hexagon %s -o - | llvm-objdump -r - | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; CHECK: RELOCATION RECORDS FOR [.rela.text]:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; CHECK: 00000000 R_HEX_B22_PCREL printf
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 ; CHECK: 00000004 R_HEX_32_6_X .rodata.str1.1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 ; CHECK: 00000008 R_HEX_6_X .rodata.str1.1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 target triple = "hexagon-unknown--elf"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 @.str = private unnamed_addr constant [10 x i8] c"cxfir.log\00", align 1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 declare i32 @printf(i8*, ...) #1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 ; Function Attrs: nounwind
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 define i32 @main() #0 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 entry:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0))
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 ret i32 0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23