brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 8e632e0 Raw
76 lines · plain
1## Test relocations without specifiers. See also relocation-specifier.s for relocations with specifiers.2# RUN: llvm-mc %s -triple=sparcv9 | FileCheck %s --check-prefix=ASM3# RUN: llvm-mc %s -triple=sparcv9 -filetype=obj -o %t4# RUN: llvm-objdump -Dr %t | FileCheck %s --check-prefix=OBJDUMP5 6# ASM:      call local7# ASM:      call local18# ASM-NEXT: call undef9# OBJDUMP:      call 0x1410# OBJDUMP-NEXT: call 0x411# OBJDUMP-NEXT:   R_SPARC_WDISP30 .text1+0x412# OBJDUMP-NEXT: call 0x813# OBJDUMP-NEXT:   R_SPARC_WDISP30 undef{{$}}14call local15call local116call undef17 18# ASM:      or %g1, sym, %g319# ASM-NEXT: or %g1, sym+4, %g320# OBJDUMP:      or %g1, 0x0, %g321# OBJDUMP-NEXT: 0000000c:  R_SPARC_13   sym{{$}}22# OBJDUMP-NEXT: or %g1, 0x0, %g323# OBJDUMP-NEXT: 00000010:  R_SPARC_13   sym+0x424or %g1, sym, %g325or %g1, (sym+4), %g326 27local:28 29# ASM:      brz %g1, undef30# ASM:      brlz %g1, .Ltmp{{.}}-831# OBJDUMP:      brz %g1, 0x1432# OBJDUMP-NEXT:   R_SPARC_WDISP16 undef33# OBJDUMP-NEXT: brlz %g1, 0x1034# OBJDUMP-NEXT: bg %icc, 0x1c35# OBJDUMP-NEXT:   R_SPARC_WDISP19 undef36# OBJDUMP-NEXT: bg %icc, 0x1837# OBJDUMP-NEXT: cbn 0x2438# OBJDUMP-NEXT:   R_SPARC_WDISP22 undef39# OBJDUMP-NEXT: cbn 0x2040brz %g1, undef41brlz %g1, .-842bg %icc, undef43bg %icc, .-844cbn undef45cbn .-846 47.section .text1,"ax"48nop49local1:50 51# OBJDUMP-LABEL: .data:52# OBJDUMP:      0: R_SPARC_32 .text1+0x853# OBJDUMP:      4: R_SPARC_DISP32 .text1+0x854# OBJDUMP:      8: R_SPARC_64 .text1+0x855# OBJDUMP:     10: R_SPARC_DISP64 .text1+0x856.data57.word local1+458.word local1+4-.59.xword local1+460.xword local1+4-.61 62# OBJDUMP:     18: R_SPARC_8 .text1+0x863# OBJDUMP:     19: R_SPARC_DISP8 .text1+0x864# OBJDUMP:     1a: R_SPARC_16 .text1+0x865# OBJDUMP:     1c: R_SPARC_DISP16 .text1+0x866.byte local1+467.byte local1+4-.68.half local1+469.half local1+4-.70 71# This test needs to placed last in the file72# ASM: .half	a-.Ltmp{{.}}{{$}}73.half a - .74.byte a - .75a:76