[llvm-objdump] - Remove one overload of reportError. NFCI.
[llvm-complete.git] / test / MC / Mips / sym-sc.s
blob208c5d84ed6b76ccc09fc0aaf6f12fec28dee67d
1 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips2 %s -o - \
2 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPS
3 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32 %s -o - \
4 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPS
5 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r2 %s -o - \
6 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPS
7 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips3 %s -o - \
8 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPS
9 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips64 %s -o - \
10 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPS
11 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips64r2 %s -o - \
12 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPS
13 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r6 %s -o - \
14 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPSR6
15 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips64r6 %s -o - \
16 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefix=MIPSR6
17 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r2 -mattr=+micromips %s -o - \
18 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefixes=MICROMIPS,MICROMIPSR2
19 # RUN: llvm-mc -filetype=obj -triple mips -mcpu=mips32r6 -mattr=+micromips %s -o - \
20 # RUN: | llvm-objdump -d -r - | FileCheck %s --check-prefixes=MICROMIPS,MICROMIPSR6
22 # MIPS: 0: e0 6c 00 00 sc $12, 0($3)
23 # MIPSR6: 0: 7c 6c 00 26 sc $12, 0($3)
24 # MICROMIPS: 0: 61 83 b0 00 sc $12, 0($3)
25 sc $12, 0($3)
27 # MIPS: 4: e0 6c 00 04 sc $12, 4($3)
28 # MIPSR6: 4: 7c 6c 02 26 sc $12, 4($3)
29 # MICROMIPS: 4: 61 83 b0 04 sc $12, 4($3)
30 sc $12, 4($3)
32 # MIPS: 8: 3c 01 00 00 lui $1, 0
33 # MIPS: 00000008: R_MIPS_HI16 symbol
34 # MIPS: c: e0 2c 00 00 sc $12, 0($1)
35 # MIPS: 0000000c: R_MIPS_LO16 symbol
37 # MIPSR6: 8: 3c 01 00 00 aui $1, $zero, 0
38 # MIPSR6: 00000008: R_MIPS_HI16 symbol
39 # MIPSR6: c: 24 21 00 00 addiu $1, $1, 0
40 # MIPSR6: 0000000c: R_MIPS_LO16 symbol
41 # MIPSR6: 10: 7c 2c 00 26 sc $12, 0($1)
43 # MICROMIPSR2: 8: 41 a1 00 00 lui $1, 0
44 # MICROMIPSR2: 00000008: R_MICROMIPS_HI16 symbol
45 # MICROMIPSR2: c: 61 81 b0 00 sc $12, 0($1)
46 # MICROMIPSR2: 0000000c: R_MICROMIPS_LO16 symbol
48 # MICROMIPSR6: 8: 3c 01 00 00 lh $zero, 0($1)
49 # MICROMIPSR6: 00000008: R_MICROMIPS_HI16 symbol
50 # MICROMIPSR6: c: 61 81 b0 00 sc $12, 0($1)
51 # MICROMIPSR6: 0000000c: R_MICROMIPS_LO16 symbol
52 sc $12, symbol
54 # MIPS: 10: 3c 01 00 00 lui $1, 0
55 # MIPS: 00000010: R_MIPS_HI16 symbol
56 # MIPS: 14: e0 2c 00 08 sc $12, 8($1)
57 # MIPS: 00000014: R_MIPS_LO16 symbol
59 # MIPSR6: 14: 3c 01 00 00 aui $1, $zero, 0
60 # MIPSR6: 00000014: R_MIPS_HI16 symbol
61 # MIPSR6: 18: 24 21 00 08 addiu $1, $1, 8
62 # MIPSR6: 00000018: R_MIPS_LO16 symbol
63 # MIPSR6: 1c: 7c 2c 00 26 sc $12, 0($1)
65 # MICROMIPSR2: 10: 41 a1 00 00 lui $1, 0
66 # MICROMIPSR2: 00000010: R_MICROMIPS_HI16 symbol
67 # MICROMIPSR2: 14: 61 81 b0 08 sc $12, 8($1)
68 # MICROMIPSR2: 00000014: R_MICROMIPS_LO16 symbol
70 # MICROMIPSR6: 10: 3c 01 00 00 lh $zero, 0($1)
71 # MICROMIPSR6: 00000010: R_MICROMIPS_HI16 symbol
72 # MICROMIPSR6: 14: 61 81 b0 08 sc $12, 8($1)
73 # MICROMIPSR6: 00000014: R_MICROMIPS_LO16 symbol
74 sc $12, symbol + 8