brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 678a103 Raw
24 lines · plain
1# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding \2# RUN: -mattr=micromips | FileCheck %s -check-prefix=CHECK-FIXUP3# RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \4# RUN: -mattr=micromips | llvm-readobj -r - \5# RUN: | FileCheck %s -check-prefix=CHECK-ELF6#------------------------------------------------------------------------------7# Check that the assembler can handle the documented syntax8# for relocations.9#------------------------------------------------------------------------------10# CHECK-FIXUP: foo:11# CHECK-FIXUP:   jal bar # encoding: [A,0xf4'A',A,0b000000AA]12# CHECK-FIXUP:           #   fixup A - offset: 0,13# CHECK-FIXUP:               value: bar, kind: fixup_MICROMIPS_26_S114# CHECK-FIXUP:   nop     # encoding: [0x00,0x00,0x00,0x00]15#------------------------------------------------------------------------------16# Check that the appropriate relocations were created.17#------------------------------------------------------------------------------18# CHECK-ELF: Relocations [19# CHECK-ELF:     0x{{[0-9,A-F]+}} R_MICROMIPS_26_S120# CHECK-ELF: ]21 22foo:23  jal bar24