]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/testsuite/gas/i386/x86-64-optimize-3.d
x86: Add -O[2|s] assembler command-line options
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / i386 / x86-64-optimize-3.d
diff --git a/gas/testsuite/gas/i386/x86-64-optimize-3.d b/gas/testsuite/gas/i386/x86-64-optimize-3.d
new file mode 100644 (file)
index 0000000..b46f728
--- /dev/null
@@ -0,0 +1,27 @@
+#as: -Os
+#objdump: -drw
+#name: x86-64 optimized encoding 3 with -Os
+
+.*: +file format .*
+
+
+Disassembly of section .text:
+
+0+ <_start>:
+ +[a-f0-9]+:   a8 7f                   test   \$0x7f,%al
+ +[a-f0-9]+:   a8 7f                   test   \$0x7f,%al
+ +[a-f0-9]+:   a8 7f                   test   \$0x7f,%al
+ +[a-f0-9]+:   a8 7f                   test   \$0x7f,%al
+ +[a-f0-9]+:   f6 c3 7f                test   \$0x7f,%bl
+ +[a-f0-9]+:   f6 c3 7f                test   \$0x7f,%bl
+ +[a-f0-9]+:   f6 c3 7f                test   \$0x7f,%bl
+ +[a-f0-9]+:   f6 c3 7f                test   \$0x7f,%bl
+ +[a-f0-9]+:   40 f6 c7 7f             test   \$0x7f,%dil
+ +[a-f0-9]+:   40 f6 c7 7f             test   \$0x7f,%dil
+ +[a-f0-9]+:   40 f6 c7 7f             test   \$0x7f,%dil
+ +[a-f0-9]+:   40 f6 c7 7f             test   \$0x7f,%dil
+ +[a-f0-9]+:   41 f6 c1 7f             test   \$0x7f,%r9b
+ +[a-f0-9]+:   41 f6 c1 7f             test   \$0x7f,%r9b
+ +[a-f0-9]+:   41 f6 c1 7f             test   \$0x7f,%r9b
+ +[a-f0-9]+:   41 f6 c1 7f             test   \$0x7f,%r9b
+#pass