summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/micromips-func-addr.s
blob: 0cd49352f3062ddeb8b14851c04265e798cccb93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \
# RUN: -mattr=micromips | llvm-readobj -r \
# RUN: | FileCheck %s
# CHECK: Relocations [
# CHECK:     0x0 R_MIPS_32 bar 0x0
# CHECK:     0x4 R_MIPS_32 L1 0x0

  .set    micromips
  .type   bar,@function
bar:
L1:
  nop
  .data
  .4byte bar 
  .4byte L1 

OpenPOWER on IntegriCloud