mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
70d3e71f2e
I did these as a separate patch because it uses a slightly different form of RIE layout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186687 91177308-0d34-0410-b5e6-96231b3b80d8
68 lines
1.6 KiB
ArmAsm
68 lines
1.6 KiB
ArmAsm
# For z196 only.
|
|
# RUN: not llvm-mc -triple s390x-linux-gnu -mcpu=z196 < %s 2> %t
|
|
# RUN: FileCheck < %t %s
|
|
|
|
#CHECK: error: invalid operand
|
|
#CHECK: aghik %r0, %r1, -32769
|
|
#CHECK: error: invalid operand
|
|
#CHECK: aghik %r0, %r1, 32768
|
|
#CHECK: error: invalid operand
|
|
#CHECK: aghik %r0, %r1, foo
|
|
|
|
aghik %r0, %r1, -32769
|
|
aghik %r0, %r1, 32768
|
|
aghik %r0, %r1, foo
|
|
|
|
#CHECK: error: invalid operand
|
|
#CHECK: ahik %r0, %r1, -32769
|
|
#CHECK: error: invalid operand
|
|
#CHECK: ahik %r0, %r1, 32768
|
|
#CHECK: error: invalid operand
|
|
#CHECK: ahik %r0, %r1, foo
|
|
|
|
ahik %r0, %r1, -32769
|
|
ahik %r0, %r1, 32768
|
|
ahik %r0, %r1, foo
|
|
|
|
#CHECK: error: invalid operand
|
|
#CHECK: sllk %r0,%r0,-524289
|
|
#CHECK: error: invalid operand
|
|
#CHECK: sllk %r0,%r0,524288
|
|
#CHECK: error: %r0 used in an address
|
|
#CHECK: sllk %r0,%r0,0(%r0)
|
|
#CHECK: error: invalid use of indexed addressing
|
|
#CHECK: sllk %r0,%r0,0(%r1,%r2)
|
|
|
|
sllk %r0,%r0,-524289
|
|
sllk %r0,%r0,524288
|
|
sllk %r0,%r0,0(%r0)
|
|
sllk %r0,%r0,0(%r1,%r2)
|
|
|
|
#CHECK: error: invalid operand
|
|
#CHECK: srak %r0,%r0,-524289
|
|
#CHECK: error: invalid operand
|
|
#CHECK: srak %r0,%r0,524288
|
|
#CHECK: error: %r0 used in an address
|
|
#CHECK: srak %r0,%r0,0(%r0)
|
|
#CHECK: error: invalid use of indexed addressing
|
|
#CHECK: srak %r0,%r0,0(%r1,%r2)
|
|
|
|
srak %r0,%r0,-524289
|
|
srak %r0,%r0,524288
|
|
srak %r0,%r0,0(%r0)
|
|
srak %r0,%r0,0(%r1,%r2)
|
|
|
|
#CHECK: error: invalid operand
|
|
#CHECK: srlk %r0,%r0,-524289
|
|
#CHECK: error: invalid operand
|
|
#CHECK: srlk %r0,%r0,524288
|
|
#CHECK: error: %r0 used in an address
|
|
#CHECK: srlk %r0,%r0,0(%r0)
|
|
#CHECK: error: invalid use of indexed addressing
|
|
#CHECK: srlk %r0,%r0,0(%r1,%r2)
|
|
|
|
srlk %r0,%r0,-524289
|
|
srlk %r0,%r0,524288
|
|
srlk %r0,%r0,0(%r0)
|
|
srlk %r0,%r0,0(%r1,%r2)
|