1 # RUN: llvm-mc %s -triple=mipsel -show-encoding -mcpu=mips32r2 -mattr=micromips | FileCheck %s
2 # Check that the assembler can handle the documented syntax
3 # for shift instructions.
4 #------------------------------------------------------------------------------
6 #------------------------------------------------------------------------------
7 # CHECK: sll $4, $3, 7 # encoding: [0x00,0x38,0x83,0x00]
8 # CHECK: sllv $2, $3, $5 # encoding: [0x10,0x10,0x65,0x00]
9 # CHECK: sra $4, $3, 7 # encoding: [0x80,0x38,0x83,0x00]
10 # CHECK: srav $2, $3, $5 # encoding: [0x90,0x10,0x65,0x00]
11 # CHECK: srl $4, $3, 7 # encoding: [0x40,0x38,0x83,0x00]
12 # CHECK: srlv $2, $3, $5 # encoding: [0x50,0x10,0x65,0x00]
13 # CHECK: rotr $9, $6, 7 # encoding: [0xc0,0x38,0x26,0x01]
14 # CHECK: rotrv $9, $6, $7 # encoding: [0xd0,0x48,0xc7,0x00]