aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/SystemZ/insn-srl-02.s
blob: 212d16bd8d569e29db43f1bff48c117d3f004b46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t
# RUN: FileCheck < %t %s

#CHECK: error: invalid operand
#CHECK: srl	%r0,-1
#CHECK: error: invalid operand
#CHECK: srl	%r0,4096
#CHECK: error: %r0 used in an address
#CHECK: srl	%r0,0(%r0)
#CHECK: error: invalid use of indexed addressing
#CHECK: srl	%r0,0(%r1,%r2)

	srl	%r0,-1
	srl	%r0,4096
	srl	%r0,0(%r0)
	srl	%r0,0(%r1,%r2)