From 947fa5b7b7074cca94dcf1a29c58594d889bba1a Mon Sep 17 00:00:00 2001 From: Matheus Almeida Date: Wed, 19 Mar 2014 16:20:19 +0000 Subject: [PATCH] [mips] Making sure that a '.set noreorder' directive is correctly parsed and emitted and that no NOPs are emitted in a 'noreorder section'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204250 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/Mips/mips_directives.s | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/MC/Mips/mips_directives.s b/test/MC/Mips/mips_directives.s index 1656c103b2b..12a4b95f722 100644 --- a/test/MC/Mips/mips_directives.s +++ b/test/MC/Mips/mips_directives.s @@ -9,9 +9,14 @@ $BB0_2: .frame $sp,0,$ra .mask 0x00000000,0 .fmask 0x00000000,0 + +# CHECK: .set noreorder # CHECK: b 1332 # encoding: [0x10,0x00,0x01,0x4d] +# CHECK-NOT: nop # CHECK: j 1328 # encoding: [0x08,0x00,0x01,0x4c] +# CHECK-NOT: nop # CHECK: jal 1328 # encoding: [0x0c,0x00,0x01,0x4c] +# CHECK-NOT: nop .set noreorder b 1332