mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
[mips] Add regression tests for parenthetic expressions in MIPS assembly.
Summary: These expressions already worked but weren't tested. Patch by Robert N. M. Watson and David Chisnall (it was originally two patches) Their work was sponsored by: DARPA, AFRL Differential Revision: http://llvm-reviews.chandlerc.com/D3156 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204612 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eaae583095
commit
75002071fd
@ -132,3 +132,15 @@
|
||||
dsubu $9, $3
|
||||
dsub $9, 10
|
||||
dsubu $9, 10
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Did you know that GAS supports complex arithmetic expressions in assembly?
|
||||
#------------------------------------------------------------------------------
|
||||
# CHECK: daddiu $9, $3, 32 # encoding: [0x20,0x00,0x69,0x64]
|
||||
# CHECK: daddiu $9, $3, 32 # encoding: [0x20,0x00,0x69,0x64]
|
||||
# CHECK: daddiu $9, $3, -32 # encoding: [0xe0,0xff,0x69,0x64]
|
||||
# CHECK: daddiu $9, $3, -32 # encoding: [0xe0,0xff,0x69,0x64]
|
||||
daddiu $9, $3, 8 * 4
|
||||
daddiu $9, $3, (8 * 4)
|
||||
dsubu $9, $3, 8 * 4
|
||||
dsubu $9, $3, (8 * 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user