xref: /llvm-project/llvm/test/MC/Mips/mips32/nal.s (revision 65f07b804c2c05cf49bd043f2a6e9a0020198165)
1# RUN: llvm-mc %s -triple=mipsel-linux-gnu -filetype=obj -o - | \
2# RUN:		 llvm-objdump --no-print-imm-hex -d - | FileCheck %s --check-prefix=MIPS32-EL
3# RUN: llvm-mc %s -triple=mips-linux-gnu -filetype=obj -o - | \
4# RUN:		 llvm-objdump --no-print-imm-hex -d - | FileCheck %s --check-prefix=MIPS32-EB
5
6# Whether it is a macro or an actual instruction, it always has a delay slot.
7# Ensure the delay slot is filled correctly.
8# MIPS32-EL:		00 00 10 04   bltzal  $zero, 0x4
9# MIPS32-EL-NEXT: 	00 00 00 00   nop
10# MIPS32-EB:		04 10 00 00   bltzal  $zero, 0x4
11# MIPS32-EB-NEXT:	00 00 00 00   nop
12
13nal_test:
14	nal
15