mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Fix issue with disassembler decoding CBZ/CBNZ immediates as negatives when the upper bit is set.
They should always be zero-extended, not sign extended. Added test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -254,9 +254,12 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# CHECK: cbnz r7, #6
|
||||
# CHECK: cbnz r7, #12
|
||||
# CHECK: cbz r4, #64
|
||||
|
||||
0x1f 0xb9
|
||||
0x37 0xb9
|
||||
0x04 0xb3
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# CDP/CDP2
|
||||
|
Reference in New Issue
Block a user