2002-02-12 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Feb 2008 18:56:12 +0000 (18:56 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Feb 2008 18:56:12 +0000 (18:56 +0000)
* gas/i386/i386.exp: Run x86-64-arch-2 instead of
x86-64-arch-10.

* gas/i386/x86-64-arch-10.d: Removed.

* gas/i386/x86-64-arch-2.d: New.
* gas/i386/x86-64-arch-2.s: Likewise.

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-arch-2.d [moved from gas/testsuite/gas/i386/x86-64-arch-10.d with 96% similarity]
gas/testsuite/gas/i386/x86-64-arch-2.s [new file with mode: 0644]

index 5e2c4b6..9ab45eb 100644 (file)
@@ -1,3 +1,13 @@
+2002-02-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/i386/i386.exp: Run x86-64-arch-2 instead of
+       x86-64-arch-10.
+
+       * gas/i386/x86-64-arch-10.d: Removed.
+
+       * gas/i386/x86-64-arch-2.d: New.
+       * gas/i386/x86-64-arch-2.s: Likewise.
+
 2008-02-12  H.J. Lu  <hongjiu.lu@intel.com>
 
        * gas/i386/x86-64-xsave.d: Remove prefix.
index 8ccb567..9af66b8 100644 (file)
@@ -227,7 +227,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t
     run_dump_test "x86-64-opcode-inval-intel"
     run_dump_test "rexw"
     run_dump_test "x86-64-arch-1"
-    run_dump_test "x86-64-arch-10"
+    run_dump_test "x86-64-arch-2"
     run_dump_test "x86-64-xsave"
     run_dump_test "x86-64-xsave-intel"
 
similarity index 96%
rename from gas/testsuite/gas/i386/x86-64-arch-10.d
rename to gas/testsuite/gas/i386/x86-64-arch-2.d
index dd4689d..235b627 100644 (file)
@@ -1,7 +1,6 @@
-#source: arch-10.s
 #as: -march=generic64+sse4+vmx+smx+xsave+sse5+3dnowa+svme+padlock
 #objdump: -dw
-#name: x86-64 arch 10
+#name: x86-64 arch 2
 
 .*:     file format .*
 
diff --git a/gas/testsuite/gas/i386/x86-64-arch-2.s b/gas/testsuite/gas/i386/x86-64-arch-2.s
new file mode 100644 (file)
index 0000000..e5e799d
--- /dev/null
@@ -0,0 +1,38 @@
+# Test -march=
+       .text
+# cmov feature 
+cmove  %eax,%ebx
+# MMX
+paddb %mm4,%mm3
+# SSE
+addss %xmm4,%xmm3
+# SSE2
+addsd %xmm4,%xmm3
+# SSE3
+addsubpd %xmm4,%xmm3
+# SSSE3
+phaddw %xmm4,%xmm3
+# SSE4.1
+phminposuw  %xmm1,%xmm3
+# SSE4.2
+crc32   %ecx,%ebx
+# VMX
+vmxoff
+# SMX
+getsec
+# Xsave
+xgetbv
+# 3DNow
+pmulhrw %mm4,%mm3
+# 3DNow Extensions
+pswapd %mm4,%mm3
+# SSE4a
+insertq %xmm2,%xmm1
+# SVME
+vmload
+# ABM
+lzcnt %ecx,%ebx
+# SSE5
+frczss          %xmm2, %xmm1
+# PadLock
+xstorerng