2013-05-24 22:26:46 +08:00
|
|
|
# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t
|
|
|
|
# RUN: FileCheck < %t %s
|
|
|
|
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo 100, 200
|
2013-07-02 22:56:45 +08:00
|
|
|
#CHECK: error: unknown token in expression
|
2013-05-24 22:26:46 +08:00
|
|
|
#CHECK: foo 100(, 200
|
2013-07-02 22:56:45 +08:00
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo 100(200), 300
|
2013-05-24 22:26:46 +08:00
|
|
|
#CHECK: error: register expected
|
2013-07-02 22:56:45 +08:00
|
|
|
#CHECK: foo 100(200,), 300
|
|
|
|
#CHECK: error: %r0 used in an address
|
|
|
|
#CHECK: foo 100(200,%r0), 300
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo 100(200,%r1), 300
|
2015-05-06 03:23:40 +08:00
|
|
|
#CHECK: error: invalid address register
|
2013-05-24 22:26:46 +08:00
|
|
|
#CHECK: foo 100(%a0), 200
|
2016-10-31 22:21:36 +08:00
|
|
|
#CHECK: error: invalid instruction
|
2013-05-24 22:26:46 +08:00
|
|
|
#CHECK: foo 100(%r0), 200
|
2015-05-06 03:23:40 +08:00
|
|
|
#CHECK: error: %r0 used in an address
|
|
|
|
#CHECK: foo 100(%v1,%r0), 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo 100(%v0,%r1), 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo 100(%v31), 200
|
2016-10-31 22:21:36 +08:00
|
|
|
#CHECK: error: invalid address register
|
2013-05-24 22:26:46 +08:00
|
|
|
#CHECK: foo 100(%r1,%a0), 200
|
|
|
|
#CHECK: error: %r0 used in an address
|
|
|
|
#CHECK: foo 100(%r1,%r0), 200
|
|
|
|
#CHECK: error: unexpected token in address
|
|
|
|
#CHECK: foo 100(%r1,%r2, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo 100(%r1,%r2), 200
|
|
|
|
#CHECK: error: unexpected token in argument list
|
|
|
|
#CHECK: foo 100(%r1,%r2)(, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %r0, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %r15, 200
|
|
|
|
#CHECK: error: invalid register
|
|
|
|
#CHECK: foo %r16, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %f0, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %f15, 200
|
|
|
|
#CHECK: error: invalid register
|
|
|
|
#CHECK: foo %f16, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %a0, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %a15, 200
|
|
|
|
#CHECK: error: invalid register
|
|
|
|
#CHECK: foo %a16, 200
|
2015-05-06 03:23:40 +08:00
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %v0, 200
|
|
|
|
#CHECK: error: invalid instruction
|
|
|
|
#CHECK: foo %v31, 200
|
|
|
|
#CHECK: error: invalid register
|
|
|
|
#CHECK: foo %v32, 200
|
2013-05-24 22:26:46 +08:00
|
|
|
#CHECK: error: invalid register
|
|
|
|
#CHECK: foo %c, 200
|
|
|
|
#CHECK: error: invalid register
|
|
|
|
#CHECK: foo %, 200
|
|
|
|
#CHECK: error: unknown token in expression
|
|
|
|
#CHECK: foo {, 200
|
|
|
|
|
|
|
|
foo 100, 200
|
|
|
|
foo 100(, 200
|
2013-07-02 22:56:45 +08:00
|
|
|
foo 100(200), 300
|
|
|
|
foo 100(200,), 300
|
|
|
|
foo 100(200,%r0), 300
|
|
|
|
foo 100(200,%r1), 300
|
2013-05-24 22:26:46 +08:00
|
|
|
foo 100(%a0), 200
|
|
|
|
foo 100(%r0), 200
|
2015-05-06 03:23:40 +08:00
|
|
|
foo 100(%v1,%r0), 200
|
|
|
|
foo 100(%v0,%r1), 200
|
|
|
|
foo 100(%v31), 200
|
2013-05-24 22:26:46 +08:00
|
|
|
foo 100(%r1,%a0), 200
|
|
|
|
foo 100(%r1,%r0), 200
|
|
|
|
foo 100(%r1,%r2, 200
|
|
|
|
foo 100(%r1,%r2), 200
|
|
|
|
foo 100(%r1,%r2)(, 200
|
|
|
|
foo %r0, 200
|
|
|
|
foo %r15, 200
|
|
|
|
foo %r16, 200
|
|
|
|
foo %f0, 200
|
|
|
|
foo %f15, 200
|
|
|
|
foo %f16, 200
|
|
|
|
foo %a0, 200
|
|
|
|
foo %a15, 200
|
|
|
|
foo %a16, 200
|
2015-05-06 03:23:40 +08:00
|
|
|
foo %v0, 200
|
|
|
|
foo %v31, 200
|
|
|
|
foo %v32, 200
|
2013-05-24 22:26:46 +08:00
|
|
|
foo %c, 200
|
|
|
|
foo %, 200
|
|
|
|
foo {, 200
|