diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2008-01-03 05:29:53 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2008-01-03 05:29:53 +0000 |
commit | e0329a226609e464988129ffde49992df8649aca (patch) | |
tree | 1057a4a0fb326c32ecf68a069497edeac8ff5258 /gas | |
parent | 18a2244ddde98503db6204adb8e3e03f0c3ed03e (diff) | |
download | gdb-e0329a226609e464988129ffde49992df8649aca.zip gdb-e0329a226609e464988129ffde49992df8649aca.tar.gz gdb-e0329a226609e464988129ffde49992df8649aca.tar.bz2 |
gas/testsuite/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/arch-5.d: New file.
* gas/i386/arch-5.s: Likewise.
* gas/i386/arch-6.d: Likewise.
* gas/i386/arch-6.s: Likewise.
* gas/i386/arch-7.d: Likewise.
* gas/i386/arch-7.s: Likewise.
* gas/i386/arch-8.d: Likewise.
* gas/i386/arch-8.s: Likewise.
* gas/i386/i386.exp: Run arch-5, arch-6, arch-7 and arch-8.
opcodes/
2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (cpu_flag_init): Add CpuSSE4_2_Or_ABM to
CPU_AMDFAM10_FLAGS, CPU_SSE4_2_FLAGS, CpuABM and
CPU_SSE5_FLAGS.
(cpu_flags): Add CpuSSE4_2_Or_ABM.
* i386-opc.h (CpuSSE4_2_Or_ABM): New.
(CpuLM): Updated.
(i386_cpu_flags): Add cpusse4_2_or_abm.
* i386-opc.tbl: Use CpuSSE4_2_Or_ABM instead of
CpuABM|CpuSSE4_2 on popcnt.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-5.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-5.s | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-6.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-6.s | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-7.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-7.s | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-8.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/arch-8.s | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 4 |
10 files changed, 81 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 5c6e1e2..a99b324 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,18 @@ 2008-01-02 H.J. Lu <hongjiu.lu@intel.com> + * gas/i386/arch-5.d: New file. + * gas/i386/arch-5.s: Likewise. + * gas/i386/arch-6.d: Likewise. + * gas/i386/arch-6.s: Likewise. + * gas/i386/arch-7.d: Likewise. + * gas/i386/arch-7.s: Likewise. + * gas/i386/arch-8.d: Likewise. + * gas/i386/arch-8.s: Likewise. + + * gas/i386/i386.exp: Run arch-5, arch-6, arch-7 and arch-8. + +2008-01-02 H.J. Lu <hongjiu.lu@intel.com> + * gas/i386/i386.s: Add tests for movq. * gas/i386/x86_64.s: Likewise. diff --git a/gas/testsuite/gas/i386/arch-5.d b/gas/testsuite/gas/i386/arch-5.d new file mode 100644 index 0000000..d1604c7 --- /dev/null +++ b/gas/testsuite/gas/i386/arch-5.d @@ -0,0 +1,11 @@ +#objdump: -dw +#name: i386 arch 5 + +.*: file format .* + +Disassembly of section .text: + +0+ <.text>: +[ ]*[a-f0-9]+: f3 0f b8 d9 popcnt %ecx,%ebx +[ ]*[a-f0-9]+: f2 0f 38 f1 d9 crc32l %ecx,%ebx +#pass diff --git a/gas/testsuite/gas/i386/arch-5.s b/gas/testsuite/gas/i386/arch-5.s new file mode 100644 index 0000000..c34615a --- /dev/null +++ b/gas/testsuite/gas/i386/arch-5.s @@ -0,0 +1,5 @@ +# Test .arch .sse4.2 +.arch generic32 +.arch .sse4.2 +popcnt %ecx,%ebx +crc32 %ecx,%ebx diff --git a/gas/testsuite/gas/i386/arch-6.d b/gas/testsuite/gas/i386/arch-6.d new file mode 100644 index 0000000..b55a5e3 --- /dev/null +++ b/gas/testsuite/gas/i386/arch-6.d @@ -0,0 +1,11 @@ +#objdump: -dw +#name: i386 arch 6 + +.*: file format .* + +Disassembly of section .text: + +0+ <.text>: +[ ]*[a-f0-9]+: f3 0f b8 d9 popcnt %ecx,%ebx +[ ]*[a-f0-9]+: f2 0f 38 f1 d9 crc32l %ecx,%ebx +#pass diff --git a/gas/testsuite/gas/i386/arch-6.s b/gas/testsuite/gas/i386/arch-6.s new file mode 100644 index 0000000..be06163 --- /dev/null +++ b/gas/testsuite/gas/i386/arch-6.s @@ -0,0 +1,5 @@ +# Test .arch .sse4 +.arch generic32 +.arch .sse4 +popcnt %ecx,%ebx +crc32 %ecx,%ebx diff --git a/gas/testsuite/gas/i386/arch-7.d b/gas/testsuite/gas/i386/arch-7.d new file mode 100644 index 0000000..8b5a2cc --- /dev/null +++ b/gas/testsuite/gas/i386/arch-7.d @@ -0,0 +1,11 @@ +#objdump: -dw +#name: i386 arch 7 + +.*: file format .* + +Disassembly of section .text: + +0+ <.text>: +[ ]*[a-f0-9]+: f3 0f b8 d9 popcnt %ecx,%ebx +[ ]*[a-f0-9]+: f3 0f bd d9 lzcnt %ecx,%ebx +#pass diff --git a/gas/testsuite/gas/i386/arch-7.s b/gas/testsuite/gas/i386/arch-7.s new file mode 100644 index 0000000..7510072 --- /dev/null +++ b/gas/testsuite/gas/i386/arch-7.s @@ -0,0 +1,5 @@ +# Test .arch .abm +.arch generic32 +.arch .abm +popcnt %ecx,%ebx +lzcnt %ecx,%ebx diff --git a/gas/testsuite/gas/i386/arch-8.d b/gas/testsuite/gas/i386/arch-8.d new file mode 100644 index 0000000..9ce0907 --- /dev/null +++ b/gas/testsuite/gas/i386/arch-8.d @@ -0,0 +1,11 @@ +#objdump: -dw +#name: i386 arch 8 + +.*: file format .* + +Disassembly of section .text: + +0+ <.text>: +[ ]*[a-f0-9]+: f3 0f b8 d9 popcnt %ecx,%ebx +[ ]*[a-f0-9]+: 0f 7a 12 ca frczss %xmm2,%xmm1 +#pass diff --git a/gas/testsuite/gas/i386/arch-8.s b/gas/testsuite/gas/i386/arch-8.s new file mode 100644 index 0000000..089c9de --- /dev/null +++ b/gas/testsuite/gas/i386/arch-8.s @@ -0,0 +1,5 @@ +# Test .arch .sse5 +.arch generic32 +.arch .sse5 +popcnt %ecx,%ebx +frczss %xmm2, %xmm1 diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 24d0120..0023c83 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -102,6 +102,10 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "arch-2" run_dump_test "arch-3" run_dump_test "arch-4" + run_dump_test "arch-5" + run_dump_test "arch-6" + run_dump_test "arch-7" + run_dump_test "arch-8" # These tests require support for 8 and 16 bit relocs, # so we only run them for ELF and COFF targets. |