diff --git a/lld/test/ELF/mips-micro-relocs.s b/lld/test/ELF/mips-micro-relocs.s index 8a5d7b9e71b2..f018b9ae6b28 100644 --- a/lld/test/ELF/mips-micro-relocs.s +++ b/lld/test/ELF/mips-micro-relocs.s @@ -5,7 +5,7 @@ # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \ # RUN: -mattr=micromips %s -o %t2eb.o # RUN: ld.lld -o %teb.exe %t1eb.o %t2eb.o -# RUN: llvm-objdump -s -t -mattr=micromips %teb.exe \ +# RUN: llvm-objdump -d -t -mattr=micromips %teb.exe \ # RUN: | FileCheck --check-prefixes=EB,SYM %s # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux \ @@ -13,46 +13,34 @@ # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux \ # RUN: -mattr=micromips %s -o %t2el.o # RUN: ld.lld -o %tel.exe %t1el.o %t2el.o -# RUN: llvm-objdump -s -t -mattr=micromips %tel.exe \ +# RUN: llvm-objdump -d -t -mattr=micromips %tel.exe \ # RUN: | FileCheck --check-prefixes=EL,SYM %s # REQUIRES: mips -# EB: Contents of section .text: -# EB-NEXT: 20000 00000000 00000000 efefefef efefefef -# EB-NEXT: 20010 41a30001 30637fe0 fc7c8018 fc638018 -# EB-NEXT: 20020 8f70007e 0000cfec 00000000 9400ffe8 -# EB-NEXT: 20030 0c00 - -# FIXME: Check disassembled code when LLD starts to setup +# Check disassembled code when LLD starts to setup # the least-significant bit for microMIPS symbols. -# FIXME-EB: __start: -# FIXME-EB-NEXT: 20010: 41 a3 00 01 lui $3, 1 -# FIXME-EB-NEXT: 20014: 30 63 7f e0 addiu $3, $3, 32736 -# FIXME-EB-NEXT: 20018: fc 7c 80 18 lw $3, -32744($gp) -# FIXME-EB-NEXT: 2001c: fc 63 80 18 lw $3, -32744($3) -# FIXME-EB-NEXT: 20020: 8f 70 beqz16 $6, -32 -# FIXME-EB-NEXT: 20022: 00 7e 00 00 sll $3, $fp, 0 -# FIXME-EB-NEXT: 20026: cf ec b16 -40 -# FIXME-EB-NEXT: 20028: 00 00 00 00 nop -# FIXME-EB-NEXT: 2002c: 94 00 ff e8 b -44 +# EB: __start: +# EB-NEXT: 20010: 41 a3 00 01 lui $3, 1 +# EB-NEXT: 20014: 30 63 7f e0 addiu $3, $3, 32736 +# EB-NEXT: 20018: fc 7c 80 18 lw $3, -32744($gp) +# EB-NEXT: 2001c: fc 63 80 18 lw $3, -32744($3) +# EB-NEXT: 20020: 8f 70 beqz16 $6, -32 +# EB-NEXT: 20022: 00 7e 00 00 sll $3, $fp, 0 +# EB-NEXT: 20026: cf ec b16 -40 +# EB-NEXT: 20028: 00 00 00 00 nop +# EB-NEXT: 2002c: 94 00 ff e8 b -44 -# EL: Contents of section .text: -# EL-NEXT: 20000 00000000 00000000 efefefef efefefef -# EL-NEXT: 20010 a3410100 6330e07f 7cfc1880 63fc1880 -# EL-NEXT: 20020 708f7e00 0000eccf 00000000 0094e8ff -# EL-NEXT: 20030 000c - -# FIXME-EL: __start: -# FIXME-EL-NEXT: 20010: a3 41 01 00 lui $3, 1 -# FIXME-EL-NEXT: 20014: 63 30 e0 7f addiu $3, $3, 32736 -# FIXME-EL-NEXT: 20018: 7c fc 18 80 lw $3, -32744($gp) -# FIXME-EL-NEXT: 2001c: 63 fc 18 80 lw $3, -32744($3) -# FIXME-EL-NEXT: 20020: 70 8f beqz16 $6, -32 -# FIXME-EL-NEXT: 20022: 7e 00 00 00 sll $3, $fp, 0 -# FIXME-EL-NEXT: 20026: ec cf b16 -40 -# FIXME-EL-NEXT: 20028: 00 00 00 00 nop -# FIXME-EL-NEXT: 2002c: 00 94 e8 ff b -44 +# EL: __start: +# EL-NEXT: 20010: a3 41 01 00 lui $3, 1 +# EL-NEXT: 20014: 63 30 e0 7f addiu $3, $3, 32736 +# EL-NEXT: 20018: 7c fc 18 80 lw $3, -32744($gp) +# EL-NEXT: 2001c: 63 fc 18 80 lw $3, -32744($3) +# EL-NEXT: 20020: 70 8f beqz16 $6, -32 +# EL-NEXT: 20022: 7e 00 00 00 sll $3, $fp, 0 +# EL-NEXT: 20026: ec cf b16 -40 +# EL-NEXT: 20028: 00 00 00 00 nop +# EL-NEXT: 2002c: 00 94 e8 ff b -44 # SYM: 00037ff0 .got 00000000 .hidden _gp # SYM: 00020000 g F .text 00000000 foo