mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
e7c682b543
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119580 91177308-0d34-0410-b5e6-96231b3b80d8
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
|