diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-05-14 09:49:11 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-05-14 09:49:11 +0000 |
commit | 847cb575a1533777f45239a8136446e02c202763 (patch) | |
tree | 14554a8b321dded3340725ef2d6436dc31565d21 /test | |
parent | b594c4c873bd3e2ee560cc83bd50282ec56b01e9 (diff) | |
download | external_llvm-847cb575a1533777f45239a8136446e02c202763.zip external_llvm-847cb575a1533777f45239a8136446e02c202763.tar.gz external_llvm-847cb575a1533777f45239a8136446e02c202763.tar.bz2 |
[SystemZ] Add extra testscases for r181773
Forgot to svn add these...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
24 files changed, 384 insertions, 0 deletions
diff --git a/test/MC/SystemZ/insn-bras-02.s b/test/MC/SystemZ/insn-bras-02.s new file mode 100644 index 0000000..77210e1 --- /dev/null +++ b/test/MC/SystemZ/insn-bras-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: bras %r0, -0x100002 +#CHECK: error: offset out of range +#CHECK: bras %r0, -1 +#CHECK: error: offset out of range +#CHECK: bras %r0, 1 +#CHECK: error: offset out of range +#CHECK: bras %r0, 0x10000 + + bras %r0, -0x100002 + bras %r0, -1 + bras %r0, 1 + bras %r0, 0x10000 diff --git a/test/MC/SystemZ/insn-brasl-02.s b/test/MC/SystemZ/insn-brasl-02.s new file mode 100644 index 0000000..783bc83 --- /dev/null +++ b/test/MC/SystemZ/insn-brasl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: brasl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: brasl %r0, -1 +#CHECK: error: offset out of range +#CHECK: brasl %r0, 1 +#CHECK: error: offset out of range +#CHECK: brasl %r0, 0x100000000 + + brasl %r0, -0x1000000002 + brasl %r0, -1 + brasl %r0, 1 + brasl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-cgfrl-02.s b/test/MC/SystemZ/insn-cgfrl-02.s new file mode 100644 index 0000000..6cc4257 --- /dev/null +++ b/test/MC/SystemZ/insn-cgfrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: cgfrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: cgfrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: cgfrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: cgfrl %r0, 0x100000000 + + cgfrl %r0, -0x1000000002 + cgfrl %r0, -1 + cgfrl %r0, 1 + cgfrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-cghrl-02.s b/test/MC/SystemZ/insn-cghrl-02.s new file mode 100644 index 0000000..100a7ab --- /dev/null +++ b/test/MC/SystemZ/insn-cghrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: cghrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: cghrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: cghrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: cghrl %r0, 0x100000000 + + cghrl %r0, -0x1000000002 + cghrl %r0, -1 + cghrl %r0, 1 + cghrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-cgrl-02.s b/test/MC/SystemZ/insn-cgrl-02.s new file mode 100644 index 0000000..ecf734e --- /dev/null +++ b/test/MC/SystemZ/insn-cgrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: cgrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: cgrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: cgrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: cgrl %r0, 0x100000000 + + cgrl %r0, -0x1000000002 + cgrl %r0, -1 + cgrl %r0, 1 + cgrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-chrl-02.s b/test/MC/SystemZ/insn-chrl-02.s new file mode 100644 index 0000000..8128a56 --- /dev/null +++ b/test/MC/SystemZ/insn-chrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: chrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: chrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: chrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: chrl %r0, 0x100000000 + + chrl %r0, -0x1000000002 + chrl %r0, -1 + chrl %r0, 1 + chrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-clgfrl-02.s b/test/MC/SystemZ/insn-clgfrl-02.s new file mode 100644 index 0000000..5afa5dc --- /dev/null +++ b/test/MC/SystemZ/insn-clgfrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: clgfrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: clgfrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: clgfrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: clgfrl %r0, 0x100000000 + + clgfrl %r0, -0x1000000002 + clgfrl %r0, -1 + clgfrl %r0, 1 + clgfrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-clghrl-02.s b/test/MC/SystemZ/insn-clghrl-02.s new file mode 100644 index 0000000..a37a625 --- /dev/null +++ b/test/MC/SystemZ/insn-clghrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: clghrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: clghrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: clghrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: clghrl %r0, 0x100000000 + + clghrl %r0, -0x1000000002 + clghrl %r0, -1 + clghrl %r0, 1 + clghrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-clgrl-02.s b/test/MC/SystemZ/insn-clgrl-02.s new file mode 100644 index 0000000..b0889a8 --- /dev/null +++ b/test/MC/SystemZ/insn-clgrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: clgrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: clgrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: clgrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: clgrl %r0, 0x100000000 + + clgrl %r0, -0x1000000002 + clgrl %r0, -1 + clgrl %r0, 1 + clgrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-clhrl-02.s b/test/MC/SystemZ/insn-clhrl-02.s new file mode 100644 index 0000000..90fecd2 --- /dev/null +++ b/test/MC/SystemZ/insn-clhrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: clhrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: clhrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: clhrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: clhrl %r0, 0x100000000 + + clhrl %r0, -0x1000000002 + clhrl %r0, -1 + clhrl %r0, 1 + clhrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-clrl-02.s b/test/MC/SystemZ/insn-clrl-02.s new file mode 100644 index 0000000..bc4c19b --- /dev/null +++ b/test/MC/SystemZ/insn-clrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: clrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: clrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: clrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: clrl %r0, 0x100000000 + + clrl %r0, -0x1000000002 + clrl %r0, -1 + clrl %r0, 1 + clrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-crl-02.s b/test/MC/SystemZ/insn-crl-02.s new file mode 100644 index 0000000..fc988f7 --- /dev/null +++ b/test/MC/SystemZ/insn-crl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: crl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: crl %r0, -1 +#CHECK: error: offset out of range +#CHECK: crl %r0, 1 +#CHECK: error: offset out of range +#CHECK: crl %r0, 0x100000000 + + crl %r0, -0x1000000002 + crl %r0, -1 + crl %r0, 1 + crl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-larl-02.s b/test/MC/SystemZ/insn-larl-02.s new file mode 100644 index 0000000..67c2a60 --- /dev/null +++ b/test/MC/SystemZ/insn-larl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: larl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: larl %r0, -1 +#CHECK: error: offset out of range +#CHECK: larl %r0, 1 +#CHECK: error: offset out of range +#CHECK: larl %r0, 0x100000000 + + larl %r0, -0x1000000002 + larl %r0, -1 + larl %r0, 1 + larl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-lgfrl-02.s b/test/MC/SystemZ/insn-lgfrl-02.s new file mode 100644 index 0000000..ab475b4 --- /dev/null +++ b/test/MC/SystemZ/insn-lgfrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: lgfrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: lgfrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: lgfrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: lgfrl %r0, 0x100000000 + + lgfrl %r0, -0x1000000002 + lgfrl %r0, -1 + lgfrl %r0, 1 + lgfrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-lghrl-02.s b/test/MC/SystemZ/insn-lghrl-02.s new file mode 100644 index 0000000..6f57b2b --- /dev/null +++ b/test/MC/SystemZ/insn-lghrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: lghrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: lghrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: lghrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: lghrl %r0, 0x100000000 + + lghrl %r0, -0x1000000002 + lghrl %r0, -1 + lghrl %r0, 1 + lghrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-lgrl-02.s b/test/MC/SystemZ/insn-lgrl-02.s new file mode 100644 index 0000000..5a21b00 --- /dev/null +++ b/test/MC/SystemZ/insn-lgrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: lgrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: lgrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: lgrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: lgrl %r0, 0x100000000 + + lgrl %r0, -0x1000000002 + lgrl %r0, -1 + lgrl %r0, 1 + lgrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-lhrl-02.s b/test/MC/SystemZ/insn-lhrl-02.s new file mode 100644 index 0000000..cca348c --- /dev/null +++ b/test/MC/SystemZ/insn-lhrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: lhrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: lhrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: lhrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: lhrl %r0, 0x100000000 + + lhrl %r0, -0x1000000002 + lhrl %r0, -1 + lhrl %r0, 1 + lhrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-llgfrl-02.s b/test/MC/SystemZ/insn-llgfrl-02.s new file mode 100644 index 0000000..f65585c --- /dev/null +++ b/test/MC/SystemZ/insn-llgfrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: llgfrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: llgfrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: llgfrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: llgfrl %r0, 0x100000000 + + llgfrl %r0, -0x1000000002 + llgfrl %r0, -1 + llgfrl %r0, 1 + llgfrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-llghrl-02.s b/test/MC/SystemZ/insn-llghrl-02.s new file mode 100644 index 0000000..b6bf592 --- /dev/null +++ b/test/MC/SystemZ/insn-llghrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: llghrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: llghrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: llghrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: llghrl %r0, 0x100000000 + + llghrl %r0, -0x1000000002 + llghrl %r0, -1 + llghrl %r0, 1 + llghrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-llhrl-02.s b/test/MC/SystemZ/insn-llhrl-02.s new file mode 100644 index 0000000..0833012 --- /dev/null +++ b/test/MC/SystemZ/insn-llhrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: llhrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: llhrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: llhrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: llhrl %r0, 0x100000000 + + llhrl %r0, -0x1000000002 + llhrl %r0, -1 + llhrl %r0, 1 + llhrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-lrl-02.s b/test/MC/SystemZ/insn-lrl-02.s new file mode 100644 index 0000000..ab26033 --- /dev/null +++ b/test/MC/SystemZ/insn-lrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: lrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: lrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: lrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: lrl %r0, 0x100000000 + + lrl %r0, -0x1000000002 + lrl %r0, -1 + lrl %r0, 1 + lrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-stgrl-02.s b/test/MC/SystemZ/insn-stgrl-02.s new file mode 100644 index 0000000..778368d --- /dev/null +++ b/test/MC/SystemZ/insn-stgrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: stgrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: stgrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: stgrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: stgrl %r0, 0x100000000 + + stgrl %r0, -0x1000000002 + stgrl %r0, -1 + stgrl %r0, 1 + stgrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-sthrl-02.s b/test/MC/SystemZ/insn-sthrl-02.s new file mode 100644 index 0000000..432345f --- /dev/null +++ b/test/MC/SystemZ/insn-sthrl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: sthrl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: sthrl %r0, -1 +#CHECK: error: offset out of range +#CHECK: sthrl %r0, 1 +#CHECK: error: offset out of range +#CHECK: sthrl %r0, 0x100000000 + + sthrl %r0, -0x1000000002 + sthrl %r0, -1 + sthrl %r0, 1 + sthrl %r0, 0x100000000 diff --git a/test/MC/SystemZ/insn-strl-02.s b/test/MC/SystemZ/insn-strl-02.s new file mode 100644 index 0000000..11d5e26 --- /dev/null +++ b/test/MC/SystemZ/insn-strl-02.s @@ -0,0 +1,16 @@ +# RUN: not llvm-mc -triple s390x-linux-gnu < %s 2> %t +# RUN: FileCheck < %t %s + +#CHECK: error: offset out of range +#CHECK: strl %r0, -0x1000000002 +#CHECK: error: offset out of range +#CHECK: strl %r0, -1 +#CHECK: error: offset out of range +#CHECK: strl %r0, 1 +#CHECK: error: offset out of range +#CHECK: strl %r0, 0x100000000 + + strl %r0, -0x1000000002 + strl %r0, -1 + strl %r0, 1 + strl %r0, 0x100000000 |