1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/MC/Mips/micromips-sc-expansion.s
2019-11-25 00:19:31 +03:00

35 lines
1.3 KiB
ArmAsm

# RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r2 -mattr=+micromips %s -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MICROMIPSR2
# RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r6 -mattr=+micromips %s -o - \
# RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MICROMIPSR6
# MICROMIPSR2: 61 83 b0 00 sc $12, 0($3)
# MICROMIPSR6: 61 83 b0 00 sc $12, 0($3)
sc $12, 0($3)
# MICROMIPSR2: 61 83 b0 04 sc $12, 4($3)
# MICROMIPSR6: 61 83 b0 04 sc $12, 4($3)
sc $12, 4($3)
# MICROMIPSR2: 41 a1 00 00 lui $1, 0
# MICROMIPSR2: R_MICROMIPS_HI16 symbol
# MICROMIPSR2: 61 81 b0 00 sc $12, 0($1)
# MICROMIPSR2: R_MICROMIPS_LO16 symbol
# MICROMIPSR6: 3c 01 00 00 lh $zero, 0($1)
# MICROMIPSR6: R_MICROMIPS_HI16 symbol
# MICROMIPSR6: 61 81 b0 00 sc $12, 0($1)
# MICROMIPSR6: R_MICROMIPS_LO16 symbol
sc $12, symbol
# MICROMIPSR2: 41 a1 00 00 lui $1, 0
# MICROMIPSR2: R_MICROMIPS_HI16 symbol
# MICROMIPSR2: 61 81 b0 08 sc $12, 8($1)
# MICROMIPSR2: R_MICROMIPS_LO16 symbol
# MICROMIPSR6: 3c 01 00 00 lh $zero, 0($1)
# MICROMIPSR6: R_MICROMIPS_HI16 symbol
# MICROMIPSR6: 61 81 b0 08 sc $12, 8($1)
# MICROMIPSR6: R_MICROMIPS_LO16 symbol
sc $12, symbol + 8