OSDN Git Service

Merge branch 'binutils' into tmp
[pf3gnuchains/pf3gnuchains4x.git] / gas / testsuite / gas / i386 / f16c.s
diff --git a/gas/testsuite/gas/i386/f16c.s b/gas/testsuite/gas/i386/f16c.s
new file mode 100644 (file)
index 0000000..803b68c
--- /dev/null
@@ -0,0 +1,26 @@
+# Check F16C new instructions.
+
+       .text
+foo:
+       vcvtph2ps %xmm4,%ymm4
+       vcvtph2ps (%ecx),%ymm4
+       vcvtph2ps %xmm4,%xmm6
+       vcvtph2ps (%ecx),%xmm4
+       vcvtps2ph $0x2,%ymm4,%xmm4
+       vcvtps2ph $0x2,%ymm4,(%ecx)
+       vcvtps2ph $0x2,%xmm4,%xmm4
+       vcvtps2ph $0x2,%xmm4,(%ecx)
+
+       .intel_syntax noprefix
+       vcvtph2ps ymm4,xmm4
+       vcvtph2ps ymm4,XMMWORD PTR [ecx]
+       vcvtph2ps ymm4,[ecx]
+       vcvtph2ps xmm6,xmm4
+       vcvtph2ps xmm4,QWORD PTR [ecx]
+       vcvtph2ps xmm4,[ecx]
+       vcvtps2ph xmm4,ymm4,0x2
+       vcvtps2ph XMMWORD PTR [ecx],ymm4,0x2
+       vcvtps2ph [ecx],ymm4,0x2
+       vcvtps2ph xmm4,xmm4,0x2
+       vcvtps2ph QWORD PTR [ecx],xmm4,0x2
+       vcvtps2ph [ecx],xmm4,0x2