brintos

brintos / llvm-project-archived public Read only

0
0
Text · 879 B · 092f7d7 Raw
34 lines · plain
1# RUN: llvm-mc -triple=i386-unknown-linux-gnu -filetype=obj --show-encoding --show-inst -o %t.o %s2# RUN: llvm-jitlink -noexec \3# RUN:   -slab-allocate 1Kb -slab-address 0x1 -slab-page-size 4096 \4# RUN:   -abs external_data=0x32 \5# RUN:   -check %s %t.o6#7# Test ELF 16 bit absolute relocations8 9        .text10        .code16 11 12        .globl  main     13        .align        2, 0x9014        .type   main,@function15main:      16        ret17        .size   main, .-main18 19# jitlink-check: decode_operand(bar, 0) = external_data20        .globl  bar21        .align        2, 0x9022        .type   bar,@function23bar:24        retw    $external_data25        .size   bar, .-bar26 27# jitlink-check: decode_operand(baz, 0) = external_data + 2328        .globl  baz29        .align        2, 0x9030        .type   baz,@function31baz:32        retw    $external_data+2333        .size   baz, .-baz34