# RUN: llvm-mc %s -triple=mipsel -show-encoding -mcpu=mips32r2 -mattr=micromips -show-inst \ # RUN: | FileCheck -check-prefix=CHECK-EL %s # RUN: llvm-mc %s -triple=mips -show-encoding -mcpu=mips32r2 -mattr=micromips -show-inst \ # RUN: | FileCheck -check-prefix=CHECK-EB %s # Check that the assembler can handle the documented syntax # for control instructions. #------------------------------------------------------------------------------ # microMIPS Control Instructions #------------------------------------------------------------------------------ # Little endian #------------------------------------------------------------------------------ # CHECK-EL: sdbbp # encoding: [0x00,0x00,0x7c,0xdb] # CHECK-EL: sdbbp 34 # encoding: [0x22,0x00,0x7c,0xdb] # CHECK-EL-NOT: .set push # CHECK-EL-NOT: .set mips32r2 # CHECK-EL: rdhwr $5, $29 # encoding: [0xbd,0x00,0x3c,0x6b] # CHECK-EL-NOT: .set pop # CHECK-EL: cache 1, 8($5) # encoding: [0x25,0x20,0x08,0x60] # CHECK-EL: pref 1, 8($5) # encoding: [0x25,0x60,0x08,0x20] # CHECK-EL: ssnop # encoding: [0x00,0x00,0x00,0x08] # CHECK-EL: ehb # encoding: [0x00,0x00,0x00,0x18] # CHECK-EL: pause # encoding: [0x00,0x00,0x00,0x28] # CHECK-EL: break # encoding: [0x00,0x00,0x07,0x00] # CHECK-EL-NEXT: #