2014-12-31 06:04:16 +08:00
|
|
|
# RUN: llvm-mc %s -filetype=obj -triple=mipsel-unknown-linux \
|
2020-07-20 15:39:14 +08:00
|
|
|
# RUN: -mattr=micromips | llvm-readobj -r - \
|
2016-04-20 07:51:52 +08:00
|
|
|
# RUN: | FileCheck %s
|
2014-12-31 06:04:16 +08:00
|
|
|
# CHECK: Relocations [
|
2020-12-10 21:12:26 +08:00
|
|
|
# CHECK: 0x0 R_MIPS_32 bar
|
|
|
|
# CHECK: 0x4 R_MIPS_32 L1
|
2014-12-31 06:04:16 +08:00
|
|
|
|
|
|
|
.set micromips
|
|
|
|
.type bar,@function
|
|
|
|
bar:
|
|
|
|
L1:
|
|
|
|
nop
|
|
|
|
.data
|
|
|
|
.4byte bar
|
|
|
|
.4byte L1
|
|
|
|
|