aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2016-12-02 16:08:10 +0100
committerClaudiu Zissulescu <claziss@synopsys.com>2016-12-02 16:30:00 +0100
commita9752fdf83985f62a0c343311a9cb42ad13f9876 (patch)
tree915c18202fc681e2161657b4acdc89cb25036f22 /gas/testsuite
parente5a873b7071d74320d4e0cbbc2f358dcf2322557 (diff)
downloadgdb-a9752fdf83985f62a0c343311a9cb42ad13f9876.zip
gdb-a9752fdf83985f62a0c343311a9cb42ad13f9876.tar.gz
gdb-a9752fdf83985f62a0c343311a9cb42ad13f9876.tar.bz2
[ARC] Sync cpu names with the ones accepted by GCC.
gas/ 2016-12-02 Claudiu Zissulescu <claziss@synopsys.com> * testsuite/gas/arc/cpu-em-err.s: New file. * testsuite/gas/arc/cpu-em4-err.s: Likewise. * testsuite/gas/arc/cpu-fpuda-err.s: Likewise. * testsuite/gas/arc/cpu-hs-err.s: Likewise. * testsuite/gas/arc/cpu-quarkse-err.s: Likewise. * testsuite/gas/arc/noargs_a7.s: Add .cpu. * config/tc-arc.c (ARC_CPU_TYPE_A6xx): Define. (ARC_CPU_TYPE_A7xx): Likewise. (ARC_CPU_TYPE_AV2EM): Likewise. (ARC_CPU_TYPE_AV2HS): Likewise. (cpu_types): Update list of known CPU names. (arc_show_cpu_list): New function. (md_show_usage): Print accepted CPU names. (cl_features): New variable. (arc_select_cpu): Use cl_features. (arc_option): Allow various .cpu names. (md_parse_option): Set cl_features. * doc/c-arc.texi: Update -mcpu and .cpu documentation.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/arc/cpu-em-err.s4
-rw-r--r--gas/testsuite/gas/arc/cpu-em4-err.s4
-rw-r--r--gas/testsuite/gas/arc/cpu-fpuda-err.s6
-rw-r--r--gas/testsuite/gas/arc/cpu-hs-err.s5
-rw-r--r--gas/testsuite/gas/arc/cpu-quarkse-err.s7
-rw-r--r--gas/testsuite/gas/arc/noargs_a7.s1
6 files changed, 27 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arc/cpu-em-err.s b/gas/testsuite/gas/arc/cpu-em-err.s
new file mode 100644
index 0000000..4faaae7
--- /dev/null
+++ b/gas/testsuite/gas/arc/cpu-em-err.s
@@ -0,0 +1,4 @@
+;;; Check if .cpu em doesn't have code-density ops.
+; { dg-do assemble { target arc*-*-* } }
+ .cpu em
+ sub_s r15,r2,r15 ; { dg-error "Error: inappropriate arguments for opcode 'sub_s'" }
diff --git a/gas/testsuite/gas/arc/cpu-em4-err.s b/gas/testsuite/gas/arc/cpu-em4-err.s
new file mode 100644
index 0000000..7c1de24
--- /dev/null
+++ b/gas/testsuite/gas/arc/cpu-em4-err.s
@@ -0,0 +1,4 @@
+;;; Check if .cpu em4 has code-density ops.
+; { dg-do assemble { target arc*-*-* } }
+ .cpu em4
+ sub_s r15,r2,r15
diff --git a/gas/testsuite/gas/arc/cpu-fpuda-err.s b/gas/testsuite/gas/arc/cpu-fpuda-err.s
new file mode 100644
index 0000000..b4cabf8
--- /dev/null
+++ b/gas/testsuite/gas/arc/cpu-fpuda-err.s
@@ -0,0 +1,6 @@
+;;; Check if .cpu em4_fpuda has code-density and fpuda ops.
+; { dg-do assemble { target arc*-*-* } }
+ .cpu em4_fpuda
+ sub_s r15,r2,r15 ; code-density op
+ dmulh11 r1,r2,r3 ; fpuda op
+ fadd r1,r2,r3 ; { dg-error "Error: opcode 'fadd' not supported for target em4_fpuda" }
diff --git a/gas/testsuite/gas/arc/cpu-hs-err.s b/gas/testsuite/gas/arc/cpu-hs-err.s
new file mode 100644
index 0000000..b8763b4
--- /dev/null
+++ b/gas/testsuite/gas/arc/cpu-hs-err.s
@@ -0,0 +1,5 @@
+;;; Check if .cpu hs has code-density
+; { dg-do assemble { target arc*-*-* } }
+ .cpu hs
+ sub_s r15,r2,r15 ; code-density op
+ dmulh11 r1,r2,r3 ; { dg-error "Error: opcode 'dmulh11' not supported for target hs" }
diff --git a/gas/testsuite/gas/arc/cpu-quarkse-err.s b/gas/testsuite/gas/arc/cpu-quarkse-err.s
new file mode 100644
index 0000000..0cf2c26
--- /dev/null
+++ b/gas/testsuite/gas/arc/cpu-quarkse-err.s
@@ -0,0 +1,7 @@
+;;; Check if .cpu em4_quarkse has code-density, spfp and dpfp ops.
+; { dg-do assemble { target arc*-*-* } }
+ .cpu quarkse_em
+ sub_s r15,r2,r15 ; code-density op
+ dmulh11 r1,r2,r3 ; dpfp op
+ fadd r1,r2,r3 ; spfp op
+ dsp_fp_div r2,r2,r3 ; QuarkSE-EM specific
diff --git a/gas/testsuite/gas/arc/noargs_a7.s b/gas/testsuite/gas/arc/noargs_a7.s
index 3158a05..ca247ad 100644
--- a/gas/testsuite/gas/arc/noargs_a7.s
+++ b/gas/testsuite/gas/arc/noargs_a7.s
@@ -1,4 +1,5 @@
#Test if the following mnemonics are recognized for ARC700
+ .cpu ARC700
rtie
sleep
nop_s