diff options
Diffstat (limited to 'test/MC/SystemZ')
-rw-r--r-- | test/MC/SystemZ/insn-bad-z196.s | 34 | ||||
-rw-r--r-- | test/MC/SystemZ/insn-good-z196.s | 96 |
2 files changed, 130 insertions, 0 deletions
diff --git a/test/MC/SystemZ/insn-bad-z196.s b/test/MC/SystemZ/insn-bad-z196.s index b4dc529..f62ea74 100644 --- a/test/MC/SystemZ/insn-bad-z196.s +++ b/test/MC/SystemZ/insn-bad-z196.s @@ -65,3 +65,37 @@ srlk %r0,%r0,524288 srlk %r0,%r0,0(%r0) srlk %r0,%r0,0(%r1,%r2) + +#CHECK: error: invalid operand +#CHECK: stoc %r0,0,-1 +#CHECK: error: invalid operand +#CHECK: stoc %r0,0,16 +#CHECK: error: invalid operand +#CHECK: stoc %r0,-524289,1 +#CHECK: error: invalid operand +#CHECK: stoc %r0,524288,1 +#CHECK: error: invalid use of indexed addressing +#CHECK: stoc %r0,0(%r1,%r2),1 + + stoc %r0,0,-1 + stoc %r0,0,16 + stoc %r0,-524289,1 + stoc %r0,524288,1 + stoc %r0,0(%r1,%r2),1 + +#CHECK: error: invalid operand +#CHECK: stocg %r0,0,-1 +#CHECK: error: invalid operand +#CHECK: stocg %r0,0,16 +#CHECK: error: invalid operand +#CHECK: stocg %r0,-524289,1 +#CHECK: error: invalid operand +#CHECK: stocg %r0,524288,1 +#CHECK: error: invalid use of indexed addressing +#CHECK: stocg %r0,0(%r1,%r2),1 + + stocg %r0,0,-1 + stocg %r0,0,16 + stocg %r0,-524289,1 + stocg %r0,524288,1 + stocg %r0,0(%r1,%r2),1 diff --git a/test/MC/SystemZ/insn-good-z196.s b/test/MC/SystemZ/insn-good-z196.s index 422c689..5b0ed59 100644 --- a/test/MC/SystemZ/insn-good-z196.s +++ b/test/MC/SystemZ/insn-good-z196.s @@ -295,6 +295,102 @@ srlk %r0,%r0,524287(%r1) srlk %r0,%r0,524287(%r15) +#CHECK: stoc %r0, 0, 0 # encoding: [0xeb,0x00,0x00,0x00,0x00,0xf3] +#CHECK: stoc %r0, 0, 15 # encoding: [0xeb,0x0f,0x00,0x00,0x00,0xf3] +#CHECK: stoc %r0, -524288, 0 # encoding: [0xeb,0x00,0x00,0x00,0x80,0xf3] +#CHECK: stoc %r0, 524287, 0 # encoding: [0xeb,0x00,0x0f,0xff,0x7f,0xf3] +#CHECK: stoc %r0, 0(%r1), 0 # encoding: [0xeb,0x00,0x10,0x00,0x00,0xf3] +#CHECK: stoc %r0, 0(%r15), 0 # encoding: [0xeb,0x00,0xf0,0x00,0x00,0xf3] +#CHECK: stoc %r15, 0, 0 # encoding: [0xeb,0xf0,0x00,0x00,0x00,0xf3] +#CHECK: stoc %r1, 4095(%r2), 3 # encoding: [0xeb,0x13,0x2f,0xff,0x00,0xf3] + + stoc %r0,0,0 + stoc %r0,0,15 + stoc %r0,-524288,0 + stoc %r0,524287,0 + stoc %r0,0(%r1),0 + stoc %r0,0(%r15),0 + stoc %r15,0,0 + stoc %r1,4095(%r2),3 + +#CHECK: stoco %r1, 2(%r3) # encoding: [0xeb,0x11,0x30,0x02,0x00,0xf3] +#CHECK: stoch %r1, 2(%r3) # encoding: [0xeb,0x12,0x30,0x02,0x00,0xf3] +#CHECK: stocnle %r1, 2(%r3) # encoding: [0xeb,0x13,0x30,0x02,0x00,0xf3] +#CHECK: stocl %r1, 2(%r3) # encoding: [0xeb,0x14,0x30,0x02,0x00,0xf3] +#CHECK: stocnhe %r1, 2(%r3) # encoding: [0xeb,0x15,0x30,0x02,0x00,0xf3] +#CHECK: stoclh %r1, 2(%r3) # encoding: [0xeb,0x16,0x30,0x02,0x00,0xf3] +#CHECK: stocne %r1, 2(%r3) # encoding: [0xeb,0x17,0x30,0x02,0x00,0xf3] +#CHECK: stoce %r1, 2(%r3) # encoding: [0xeb,0x18,0x30,0x02,0x00,0xf3] +#CHECK: stocnlh %r1, 2(%r3) # encoding: [0xeb,0x19,0x30,0x02,0x00,0xf3] +#CHECK: stoche %r1, 2(%r3) # encoding: [0xeb,0x1a,0x30,0x02,0x00,0xf3] +#CHECK: stocnl %r1, 2(%r3) # encoding: [0xeb,0x1b,0x30,0x02,0x00,0xf3] +#CHECK: stocle %r1, 2(%r3) # encoding: [0xeb,0x1c,0x30,0x02,0x00,0xf3] +#CHECK: stocnh %r1, 2(%r3) # encoding: [0xeb,0x1d,0x30,0x02,0x00,0xf3] +#CHECK: stocno %r1, 2(%r3) # encoding: [0xeb,0x1e,0x30,0x02,0x00,0xf3] + + stoco %r1,2(%r3) + stoch %r1,2(%r3) + stocnle %r1,2(%r3) + stocl %r1,2(%r3) + stocnhe %r1,2(%r3) + stoclh %r1,2(%r3) + stocne %r1,2(%r3) + stoce %r1,2(%r3) + stocnlh %r1,2(%r3) + stoche %r1,2(%r3) + stocnl %r1,2(%r3) + stocle %r1,2(%r3) + stocnh %r1,2(%r3) + stocno %r1,2(%r3) + +#CHECK: stocg %r0, 0, 0 # encoding: [0xeb,0x00,0x00,0x00,0x00,0xe3] +#CHECK: stocg %r0, 0, 15 # encoding: [0xeb,0x0f,0x00,0x00,0x00,0xe3] +#CHECK: stocg %r0, -524288, 0 # encoding: [0xeb,0x00,0x00,0x00,0x80,0xe3] +#CHECK: stocg %r0, 524287, 0 # encoding: [0xeb,0x00,0x0f,0xff,0x7f,0xe3] +#CHECK: stocg %r0, 0(%r1), 0 # encoding: [0xeb,0x00,0x10,0x00,0x00,0xe3] +#CHECK: stocg %r0, 0(%r15), 0 # encoding: [0xeb,0x00,0xf0,0x00,0x00,0xe3] +#CHECK: stocg %r15, 0, 0 # encoding: [0xeb,0xf0,0x00,0x00,0x00,0xe3] +#CHECK: stocg %r1, 4095(%r2), 3 # encoding: [0xeb,0x13,0x2f,0xff,0x00,0xe3] + + stocg %r0,0,0 + stocg %r0,0,15 + stocg %r0,-524288,0 + stocg %r0,524287,0 + stocg %r0,0(%r1),0 + stocg %r0,0(%r15),0 + stocg %r15,0,0 + stocg %r1,4095(%r2),3 + +#CHECK: stocgo %r1, 2(%r3) # encoding: [0xeb,0x11,0x30,0x02,0x00,0xe3] +#CHECK: stocgh %r1, 2(%r3) # encoding: [0xeb,0x12,0x30,0x02,0x00,0xe3] +#CHECK: stocgnle %r1, 2(%r3) # encoding: [0xeb,0x13,0x30,0x02,0x00,0xe3] +#CHECK: stocgl %r1, 2(%r3) # encoding: [0xeb,0x14,0x30,0x02,0x00,0xe3] +#CHECK: stocgnhe %r1, 2(%r3) # encoding: [0xeb,0x15,0x30,0x02,0x00,0xe3] +#CHECK: stocglh %r1, 2(%r3) # encoding: [0xeb,0x16,0x30,0x02,0x00,0xe3] +#CHECK: stocgne %r1, 2(%r3) # encoding: [0xeb,0x17,0x30,0x02,0x00,0xe3] +#CHECK: stocge %r1, 2(%r3) # encoding: [0xeb,0x18,0x30,0x02,0x00,0xe3] +#CHECK: stocgnlh %r1, 2(%r3) # encoding: [0xeb,0x19,0x30,0x02,0x00,0xe3] +#CHECK: stocghe %r1, 2(%r3) # encoding: [0xeb,0x1a,0x30,0x02,0x00,0xe3] +#CHECK: stocgnl %r1, 2(%r3) # encoding: [0xeb,0x1b,0x30,0x02,0x00,0xe3] +#CHECK: stocgle %r1, 2(%r3) # encoding: [0xeb,0x1c,0x30,0x02,0x00,0xe3] +#CHECK: stocgnh %r1, 2(%r3) # encoding: [0xeb,0x1d,0x30,0x02,0x00,0xe3] +#CHECK: stocgno %r1, 2(%r3) # encoding: [0xeb,0x1e,0x30,0x02,0x00,0xe3] + + stocgo %r1,2(%r3) + stocgh %r1,2(%r3) + stocgnle %r1,2(%r3) + stocgl %r1,2(%r3) + stocgnhe %r1,2(%r3) + stocglh %r1,2(%r3) + stocgne %r1,2(%r3) + stocge %r1,2(%r3) + stocgnlh %r1,2(%r3) + stocghe %r1,2(%r3) + stocgnl %r1,2(%r3) + stocgle %r1,2(%r3) + stocgnh %r1,2(%r3) + stocgno %r1,2(%r3) + #CHECK: xgrk %r0, %r0, %r0 # encoding: [0xb9,0xe7,0x00,0x00] #CHECK: xgrk %r0, %r0, %r15 # encoding: [0xb9,0xe7,0xf0,0x00] #CHECK: xgrk %r0, %r15, %r0 # encoding: [0xb9,0xe7,0x00,0x0f] |