Skip to content

Commit

Permalink
Zcmpe:add cm.push/cm.pop/cm.popret/cm.popretz fail testcase (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yulong18 authored and jeremybennett committed Aug 30, 2022
1 parent a4e013a commit 1f3779e
Show file tree
Hide file tree
Showing 12 changed files with 324 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-pop-fail.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#as: -march=rv32e_zca_zcmpe
#source: zc-zcmpe-pop-fail.s
#error_output: zc-zcmpe-pop-fail.l
35 changes: 35 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-pop-fail.l
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.*: Assembler messages:
.*: Error: illegal operands `cm.pop \{zero\},64'
.*: Error: illegal operands `cm.pop \{sp\},64'
.*: Error: illegal operands `cm.pop \{gp\},64'
.*: Error: illegal operands `cm.pop \{tp\},64'
.*: Error: illegal operands `cm.pop \{t1\},64'
.*: Error: illegal operands `cm.pop \{s1\},64'
.*: Error: illegal operands `cm.pop \{a1\},64'
.*: Error: illegal operands `cm.pop \{ra,zero\},64'
.*: Error: illegal operands `cm.pop \{ra,ra\},64'
.*: Error: illegal operands `cm.pop \{ra,sp\},64'
.*: Error: illegal operands `cm.pop \{ra,gp\},64'
.*: Error: illegal operands `cm.pop \{ra,tp\},64'
.*: Error: illegal operands `cm.pop \{ra,t1\},64'
.*: Error: illegal operands `cm.pop \{ra,s1\},64'
.*: Error: illegal operands `cm.pop \{ra,a1\},64'
.*: Error: illegal operands `cm.pop \{ra,t2-s1\},64'
.*: Error: illegal operands `cm.pop \{ra,s0-s2\},64'
.*: Error: illegal operands `cm.pop \{ra,a0-a1\},64'
.*: Error: illegal operands `cm.pop \{ra,t0-t1\},64'
.*: Error: illegal operands `cm.pop \{x0\},64'
.*: Error: illegal operands `cm.pop \{x2\},64'
.*: Error: illegal operands `cm.pop \{x3\},64'
.*: Error: illegal operands `cm.pop \{x1,x7\},64'
.*: Error: illegal operands `cm.pop \{x1,x9\},64'
.*: Error: illegal operands `cm.pop \{x1,x7-x9\},64'
.*: Error: illegal operands `cm.pop \{x1,x8-x10\},64'
.*: Error: illegal operands `cm.pop \{x1,x8-x8\},64'
.*: Error: illegal operands `cm.pop \{ra\},-16'
.*: Error: illegal operands `cm.pop \{ra\},-32'
.*: Error: illegal operands `cm.pop \{ra\},-64'
.*: Error: illegal operands `cm.pop \{ra\},15'
.*: Error: illegal operands `cm.pop \{ra\},65'
.*: Error: illegal operands `cm.pop \{ra\},0'
.*: Error: illegal operands `cm.pop \{ra\},80'
43 changes: 43 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-pop-fail.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
zcmpe:
#-march=rv32e_zca_zcmpe
#abi names
cm.pop {zero}, 64
cm.pop {sp}, 64
cm.pop {gp}, 64
cm.pop {tp}, 64
cm.pop {t1}, 64
cm.pop {s1}, 64
cm.pop {a1}, 64

cm.pop {ra, zero}, 64
cm.pop {ra, ra}, 64
cm.pop {ra, sp}, 64
cm.pop {ra, gp}, 64
cm.pop {ra, tp}, 64
cm.pop {ra, t1}, 64
cm.pop {ra, s1}, 64
cm.pop {ra, a1}, 64
cm.pop {ra, t2-s1}, 64
cm.pop {ra, s0-s2}, 64
cm.pop {ra, a0-a1}, 64
cm.pop {ra, t0-t1}, 64

# numeric names
cm.pop {x0}, 64
cm.pop {x2}, 64
cm.pop {x3}, 64

cm.pop {x1, x7}, 64
cm.pop {x1, x9}, 64
cm.pop {x1, x7-x9}, 64
cm.pop {x1, x8-x10}, 64
cm.pop {x1, x8-x8}, 64

# spimm
cm.pop {ra}, -16
cm.pop {ra}, -32
cm.pop {ra}, -64
cm.pop {ra}, 15
cm.pop {ra}, 65
cm.pop {ra}, 0
cm.pop {ra}, 80
3 changes: 3 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-popret-fail.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#as: -march=rv32e_zca_zcmpe
#source: zc-zcmpe-popret-fail.s
#error_output: zc-zcmpe-popret-fail.l
35 changes: 35 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-popret-fail.l
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.*: Assembler messages:
.*: Error: illegal operands `cm.popret \{zero\},64'
.*: Error: illegal operands `cm.popret \{sp\},64'
.*: Error: illegal operands `cm.popret \{gp\},64'
.*: Error: illegal operands `cm.popret \{tp\},64'
.*: Error: illegal operands `cm.popret \{t1\},64'
.*: Error: illegal operands `cm.popret \{s1\},64'
.*: Error: illegal operands `cm.popret \{a1\},64'
.*: Error: illegal operands `cm.popret \{ra,zero\},64'
.*: Error: illegal operands `cm.popret \{ra,ra\},64'
.*: Error: illegal operands `cm.popret \{ra,sp\},64'
.*: Error: illegal operands `cm.popret \{ra,gp\},64'
.*: Error: illegal operands `cm.popret \{ra,tp\},64'
.*: Error: illegal operands `cm.popret \{ra,t1\},64'
.*: Error: illegal operands `cm.popret \{ra,s1\},64'
.*: Error: illegal operands `cm.popret \{ra,a1\},64'
.*: Error: illegal operands `cm.popret \{ra,t2-s1\},64'
.*: Error: illegal operands `cm.popret \{ra,s0-s2\},64'
.*: Error: illegal operands `cm.popret \{ra,a0-a1\},64'
.*: Error: illegal operands `cm.popret \{ra,t0-t1\},64'
.*: Error: illegal operands `cm.popret \{x0\},64'
.*: Error: illegal operands `cm.popret \{x2\},64'
.*: Error: illegal operands `cm.popret \{x3\},64'
.*: Error: illegal operands `cm.popret \{x1,x7\},64'
.*: Error: illegal operands `cm.popret \{x1,x9\},64'
.*: Error: illegal operands `cm.popret \{x1,x7-x9\},64'
.*: Error: illegal operands `cm.popret \{x1,x8-x10\},64'
.*: Error: illegal operands `cm.popret \{x1,x8-x8\},64'
.*: Error: illegal operands `cm.popret \{ra\},-16'
.*: Error: illegal operands `cm.popret \{ra\},-32'
.*: Error: illegal operands `cm.popret \{ra\},-64'
.*: Error: illegal operands `cm.popret \{ra\},15'
.*: Error: illegal operands `cm.popret \{ra\},65'
.*: Error: illegal operands `cm.popret \{ra\},0'
.*: Error: illegal operands `cm.popret \{ra\},80'
43 changes: 43 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-popret-fail.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
zcmpe:
#-march=rv32e_zca_zcmpe
#abi names
cm.popret {zero}, 64
cm.popret {sp}, 64
cm.popret {gp}, 64
cm.popret {tp}, 64
cm.popret {t1}, 64
cm.popret {s1}, 64
cm.popret {a1}, 64

cm.popret {ra, zero}, 64
cm.popret {ra, ra}, 64
cm.popret {ra, sp}, 64
cm.popret {ra, gp}, 64
cm.popret {ra, tp}, 64
cm.popret {ra, t1}, 64
cm.popret {ra, s1}, 64
cm.popret {ra, a1}, 64
cm.popret {ra, t2-s1}, 64
cm.popret {ra, s0-s2}, 64
cm.popret {ra, a0-a1}, 64
cm.popret {ra, t0-t1}, 64

# numeric names
cm.popret {x0}, 64
cm.popret {x2}, 64
cm.popret {x3}, 64

cm.popret {x1, x7}, 64
cm.popret {x1, x9}, 64
cm.popret {x1, x7-x9}, 64
cm.popret {x1, x8-x10}, 64
cm.popret {x1, x8-x8}, 64

# spimm
cm.popret {ra}, -16
cm.popret {ra}, -32
cm.popret {ra}, -64
cm.popret {ra}, 15
cm.popret {ra}, 65
cm.popret {ra}, 0
cm.popret {ra}, 80
3 changes: 3 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-popretz-fail.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#as: -march=rv32e_zca_zcmpe
#source: zc-zcmpe-popretz-fail.s
#error_output: zc-zcmpe-popretz-fail.l
35 changes: 35 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-popretz-fail.l
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.*: Assembler messages:
.*: Error: illegal operands `cm.popretz \{zero\},64'
.*: Error: illegal operands `cm.popretz \{sp\},64'
.*: Error: illegal operands `cm.popretz \{gp\},64'
.*: Error: illegal operands `cm.popretz \{tp\},64'
.*: Error: illegal operands `cm.popretz \{t1\},64'
.*: Error: illegal operands `cm.popretz \{s1\},64'
.*: Error: illegal operands `cm.popretz \{a1\},64'
.*: Error: illegal operands `cm.popretz \{ra,zero\},64'
.*: Error: illegal operands `cm.popretz \{ra,ra\},64'
.*: Error: illegal operands `cm.popretz \{ra,sp\},64'
.*: Error: illegal operands `cm.popretz \{ra,gp\},64'
.*: Error: illegal operands `cm.popretz \{ra,tp\},64'
.*: Error: illegal operands `cm.popretz \{ra,t1\},64'
.*: Error: illegal operands `cm.popretz \{ra,s1\},64'
.*: Error: illegal operands `cm.popretz \{ra,a1\},64'
.*: Error: illegal operands `cm.popretz \{ra,t2-s1\},64'
.*: Error: illegal operands `cm.popretz \{ra,s0-s2\},64'
.*: Error: illegal operands `cm.popretz \{ra,a0-a1\},64'
.*: Error: illegal operands `cm.popretz \{ra,t0-t1\},64'
.*: Error: illegal operands `cm.popretz \{x0\},64'
.*: Error: illegal operands `cm.popretz \{x2\},64'
.*: Error: illegal operands `cm.popretz \{x3\},64'
.*: Error: illegal operands `cm.popretz \{x1,x7\},64'
.*: Error: illegal operands `cm.popretz \{x1,x9\},64'
.*: Error: illegal operands `cm.popretz \{x1,x7-x9\},64'
.*: Error: illegal operands `cm.popretz \{x1,x8-x10\},64'
.*: Error: illegal operands `cm.popretz \{x1,x8-x8\},64'
.*: Error: illegal operands `cm.popretz \{ra\},-16'
.*: Error: illegal operands `cm.popretz \{ra\},-32'
.*: Error: illegal operands `cm.popretz \{ra\},-64'
.*: Error: illegal operands `cm.popretz \{ra\},15'
.*: Error: illegal operands `cm.popretz \{ra\},65'
.*: Error: illegal operands `cm.popretz \{ra\},0'
.*: Error: illegal operands `cm.popretz \{ra\},80'
43 changes: 43 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-popretz-fail.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
zcmpe:
#-march=rv32e_zca_zcmpe
#abi names
cm.popretz {zero}, 64
cm.popretz {sp}, 64
cm.popretz {gp}, 64
cm.popretz {tp}, 64
cm.popretz {t1}, 64
cm.popretz {s1}, 64
cm.popretz {a1}, 64

cm.popretz {ra, zero}, 64
cm.popretz {ra, ra}, 64
cm.popretz {ra, sp}, 64
cm.popretz {ra, gp}, 64
cm.popretz {ra, tp}, 64
cm.popretz {ra, t1}, 64
cm.popretz {ra, s1}, 64
cm.popretz {ra, a1}, 64
cm.popretz {ra, t2-s1}, 64
cm.popretz {ra, s0-s2}, 64
cm.popretz {ra, a0-a1}, 64
cm.popretz {ra, t0-t1}, 64

# numeric names
cm.popretz {x0}, 64
cm.popretz {x2}, 64
cm.popretz {x3}, 64

cm.popretz {x1, x7}, 64
cm.popretz {x1, x9}, 64
cm.popretz {x1, x7-x9}, 64
cm.popretz {x1, x8-x10}, 64
cm.popretz {x1, x8-x8}, 64

# spimm
cm.popretz {ra}, -16
cm.popretz {ra}, -32
cm.popretz {ra}, -64
cm.popretz {ra}, 15
cm.popretz {ra}, 65
cm.popretz {ra}, 0
cm.popretz {ra}, 80
3 changes: 3 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-push-fail.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#as: -march=rv32e_zca_zcmpe
#source: zc-zcmpe-push-fail.s
#error_output: zc-zcmpe-push-fail.l
35 changes: 35 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-push-fail.l
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.*: Assembler messages:
.*: Error: illegal operands `cm.push \{zero\},-64'
.*: Error: illegal operands `cm.push \{sp\},-64'
.*: Error: illegal operands `cm.push \{gp\},-64'
.*: Error: illegal operands `cm.push \{tp\},-64'
.*: Error: illegal operands `cm.push \{t1\},-64'
.*: Error: illegal operands `cm.push \{s1\},-64'
.*: Error: illegal operands `cm.push \{a1\},-64'
.*: Error: illegal operands `cm.push \{ra,zero\},-64'
.*: Error: illegal operands `cm.push \{ra,ra\},-64'
.*: Error: illegal operands `cm.push \{ra,sp\},-64'
.*: Error: illegal operands `cm.push \{ra,gp\},-64'
.*: Error: illegal operands `cm.push \{ra,tp\},-64'
.*: Error: illegal operands `cm.push \{ra,t1\},-64'
.*: Error: illegal operands `cm.push \{ra,s1\},-64'
.*: Error: illegal operands `cm.push \{ra,a1\},-64'
.*: Error: illegal operands `cm.push \{ra,t2-s1\},-64'
.*: Error: illegal operands `cm.push \{ra,s0-s2\},-64'
.*: Error: illegal operands `cm.push \{ra,a0-a1\},-64'
.*: Error: illegal operands `cm.push \{ra,t0-t1\},-64'
.*: Error: illegal operands `cm.push \{x0\},-64'
.*: Error: illegal operands `cm.push \{x2\},-64'
.*: Error: illegal operands `cm.push \{x3\},-64'
.*: Error: illegal operands `cm.push \{x1,x7\},-64'
.*: Error: illegal operands `cm.push \{x1,x9\},-64'
.*: Error: illegal operands `cm.push \{x1,x7-x9\},-64'
.*: Error: illegal operands `cm.push \{x1,x8-x10\},-64'
.*: Error: illegal operands `cm.push \{x1,x8-x8\},-64'
.*: Error: illegal operands `cm.push \{ra\},16'
.*: Error: illegal operands `cm.push \{ra\},32'
.*: Error: illegal operands `cm.push \{ra\},64'
.*: Error: illegal operands `cm.push \{ra\},-15'
.*: Error: illegal operands `cm.push \{ra\},-65'
.*: Error: illegal operands `cm.push \{ra\},-0'
.*: Error: illegal operands `cm.push \{ra\},-80'
43 changes: 43 additions & 0 deletions gas/testsuite/gas/riscv/zc-zcmpe-push-fail.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
zcmpe:
#-march=rv32e_zca_zcmpe
#abi names
cm.push {zero}, -64
cm.push {sp}, -64
cm.push {gp}, -64
cm.push {tp}, -64
cm.push {t1}, -64
cm.push {s1}, -64
cm.push {a1}, -64

cm.push {ra, zero}, -64
cm.push {ra, ra}, -64
cm.push {ra, sp}, -64
cm.push {ra, gp}, -64
cm.push {ra, tp}, -64
cm.push {ra, t1}, -64
cm.push {ra, s1}, -64
cm.push {ra, a1}, -64
cm.push {ra, t2-s1}, -64
cm.push {ra, s0-s2}, -64
cm.push {ra, a0-a1}, -64
cm.push {ra, t0-t1}, -64

# numeric names
cm.push {x0}, -64
cm.push {x2}, -64
cm.push {x3}, -64

cm.push {x1, x7}, -64
cm.push {x1, x9}, -64
cm.push {x1, x7-x9}, -64
cm.push {x1, x8-x10}, -64
cm.push {x1, x8-x8}, -64

# spimm
cm.push {ra}, 16
cm.push {ra}, 32
cm.push {ra}, 64
cm.push {ra}, -15
cm.push {ra}, -65
cm.push {ra}, -0
cm.push {ra}, -80

0 comments on commit 1f3779e

Please sign in to comment.