diff options
author | Michal Ludvig <mludvig@suse.cz> | 2004-03-12 13:37:38 +0000 |
---|---|---|
committer | Michal Ludvig <mludvig@suse.cz> | 2004-03-12 13:37:38 +0000 |
commit | 01b2c7ac73aa5fe0ba3c07ac938d19db1c47f23e (patch) | |
tree | c3cee48b10275bf6d111dd48e33e1e67b9ea61c2 /gas/testsuite/gas | |
parent | 0eac539f952ecc49a868d01ffbd1359e171bc004 (diff) | |
download | binutils-redhat-01b2c7ac73aa5fe0ba3c07ac938d19db1c47f23e.tar.gz |
2004-03-12 Michal Ludvig <mludvig@suse.cz>
* gas/i386/padlock.s, gas/i386/padlock.d: New tests for
VIA PadLock instructions.
* gas/i386/i386.exp: Run padlock tests.
Diffstat (limited to 'gas/testsuite/gas')
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/padlock.d | 20 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/padlock.s | 16 |
3 files changed, 37 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index c0203faa15..3ccb7e2e2b 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -58,6 +58,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "sub" run_dump_test "prescott" run_dump_test "divide" + run_dump_test "padlock" # PIC is only supported on ELF targets. if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"] ) diff --git a/gas/testsuite/gas/i386/padlock.d b/gas/testsuite/gas/i386/padlock.d new file mode 100644 index 0000000000..36532c442d --- /dev/null +++ b/gas/testsuite/gas/i386/padlock.d @@ -0,0 +1,20 @@ +#objdump: -dw +#name: i386 padlock + +.*: +file format .* + +Disassembly of section .text: + +00000000 <foo>: + 0:[ ]*0f a7 c0 [ ]*xstorerng + 3:[ ]*f3 0f a7 c0 [ ]*repz xstorerng + 7:[ ]*f3 0f a7 c8 [ ]*repz xcryptecb + b:[ ]*f3 0f a7 c8 [ ]*repz xcryptecb + f:[ ]*f3 0f a7 d0 [ ]*repz xcryptcbc + 13:[ ]*f3 0f a7 d0 [ ]*repz xcryptcbc + 17:[ ]*f3 0f a7 e0 [ ]*repz xcryptcfb + 1b:[ ]*f3 0f a7 e0 [ ]*repz xcryptcfb + 1f:[ ]*f3 0f a7 e8 [ ]*repz xcryptofb + 23:[ ]*f3 0f a7 e8 [ ]*repz xcryptofb + 27:[ ]*0f a7 c0 [ ]*xstorerng + 2a:[ ]*f3 0f a7 c0 [ ]*repz xstorerng diff --git a/gas/testsuite/gas/i386/padlock.s b/gas/testsuite/gas/i386/padlock.s new file mode 100644 index 0000000000..305c2fe9ba --- /dev/null +++ b/gas/testsuite/gas/i386/padlock.s @@ -0,0 +1,16 @@ +# VIA Nehemiah PadLock instructions + + .text +foo: + xstorerng + rep xstorerng + xcryptecb + rep xcryptecb + xcryptcbc + rep xcryptcbc + xcryptcfb + rep xcryptcfb + xcryptofb + rep xcryptofb + xstore + rep xstore |