mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 00:12:50 +01:00
890a8357af
llvm-svn: 119580
30 lines
667 B
Plaintext
30 lines
667 B
Plaintext
# RUN: llvm-mc --disassemble %s -triple=mblaze-unknown-unknown | FileCheck %s
|
|
|
|
################################################################################
|
|
# Shift instructions
|
|
################################################################################
|
|
|
|
# CHECK: bsrl r1, r2, r3
|
|
0x44 0x22 0x18 0x00
|
|
|
|
# CHECK: bsra r1, r2, r3
|
|
0x44 0x22 0x1a 0x00
|
|
|
|
# CHECK: bsll r1, r2, r3
|
|
0x44 0x22 0x1c 0x00
|
|
|
|
# CHECK: bsrli r1, r2, 0
|
|
0x64 0x22 0x00 0x00
|
|
|
|
# CHECK: bsrai r1, r2, 0
|
|
0x64 0x22 0x02 0x00
|
|
|
|
# CHECK: bslli r1, r2, 0
|
|
0x64 0x22 0x04 0x00
|
|
|
|
# CHECK: sra r1, r2
|
|
0x90 0x22 0x00 0x01
|
|
|
|
# CHECK: srl r1, r2
|
|
0x90 0x22 0x00 0x41
|