x86-64: also diagnose far returns / IRET with ambiguous operand size
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / l1om.d
index fe068385d3c4cfc06ba88fc016d181ec91c51290..858d1827f925dafcb6c9a51f85cc1bc657c58b21 100644 (file)
@@ -2,6 +2,7 @@
 #as: -J -march=l1om
 #objdump: -dw --insn-width=7
 #name: l1om
+#warning_output: x86_64.e
 #notarget: *-*-nacl*
 
 .*: +file format elf64-l1om.*
@@ -54,7 +55,7 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    41 03 00                add    \(%r8\),%eax
 [      ]*[a-f0-9]+:    45 03 00                add    \(%r8\),%r8d
 [      ]*[a-f0-9]+:    49 03 00                add    \(%r8\),%rax
-[      ]*[a-f0-9]+:    03 05 22 22 22 22       add    0x22222222\(%rip\),%eax        # 222222c7 <foo\+0x222220c4>
+[      ]*[a-f0-9]+:    03 05 22 22 22 22       add    0x22222222\(%rip\),%eax        # 2222[0-9a-f]* <foo\+0x2222[0-9a-f]*>
 [      ]*[a-f0-9]+:    03 45 00                add    0x0\(%rbp\),%eax
 [      ]*[a-f0-9]+:    03 04 25 22 22 22 22    add    0x22222222,%eax
 [      ]*[a-f0-9]+:    41 03 45 00             add    0x0\(%r13\),%eax
@@ -86,10 +87,10 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    83 04 81 11             addl   \$0x11,\(%rcx,%rax,4\)
 [      ]*[a-f0-9]+:    41 83 04 81 11          addl   \$0x11,\(%r9,%rax,4\)
 [      ]*[a-f0-9]+:    42 83 04 81 11          addl   \$0x11,\(%rcx,%r8,4\)
-[      ]*[a-f0-9]+:    83 05 22 22 22 22 33    addl   \$0x33,0x22222222\(%rip\)        # 22222342 <foo\+0x2222213f>
-[      ]*[a-f0-9]+:    48 83 05 22 22 22 22 33         addq   \$0x33,0x22222222\(%rip\)        # 2222234a <foo\+0x22222147>
-[      ]*[a-f0-9]+:    81 05 22 22 22 22 33 33 33 33   addl   \$0x33333333,0x22222222\(%rip\)        # 22222354 <foo\+0x22222151>
-[      ]*[a-f0-9]+:    48 81 05 22 22 22 22 33 33 33 33        addq   \$0x33333333,0x22222222\(%rip\)        # 2222235f <foo\+0x2222215c>
+[      ]*[a-f0-9]+:    83 05 22 22 22 22 33    addl   \$0x33,0x22222222\(%rip\)        # 2222[0-9a-f]* <foo\+0x2222[0-9a-f]*>
+[      ]*[a-f0-9]+:    48 83 05 22 22 22 22 33         addq   \$0x33,0x22222222\(%rip\)        # 2222[0-9a-f]* <foo\+0x2222[0-9a-f]*>
+[      ]*[a-f0-9]+:    81 05 22 22 22 22 33 33 33 33   addl   \$0x33333333,0x22222222\(%rip\)        # 2222[0-9a-f]* <foo\+0x2222[0-9a-f]*>
+[      ]*[a-f0-9]+:    48 81 05 22 22 22 22 33 33 33 33        addq   \$0x33333333,0x22222222\(%rip\)        # 2222[0-9a-f]* <foo\+0x2222[0-9a-f]*>
 [      ]*[a-f0-9]+:    83 04 c5 22 22 22 22 33         addl   \$0x33,0x22222222\(,%rax,8\)
 [      ]*[a-f0-9]+:    83 80 22 22 22 22 33    addl   \$0x33,0x22222222\(%rax\)
 [      ]*[a-f0-9]+:    83 80 22 22 22 22 33    addl   \$0x33,0x22222222\(%rax\)
@@ -106,8 +107,16 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    48 63 c0                movslq %eax,%rax
 [      ]*[a-f0-9]+:    48 0f bf c0             movswq %ax,%rax
 [      ]*[a-f0-9]+:    48 0f be c0             movsbq %al,%rax
+[      ]*[a-f0-9]+:    cb                      lret *
+[      ]*[a-f0-9]+:    ca 10 00                lret   \$0x10
+[      ]*[a-f0-9]+:    66 cb                   lretw *
+[      ]*[a-f0-9]+:    66 ca 02 00             lretw  \$0x2
+[      ]*[a-f0-9]+:    cb                      lret *
+[      ]*[a-f0-9]+:    ca 04 00                lret   \$0x4
+[      ]*[a-f0-9]+:    48 cb                   lretq *
+[      ]*[a-f0-9]+:    48 ca 08 00             lretq  \$0x8
 
-0+1a7 <bar>:
+[0-9a-f]+ <bar>:
 [      ]*[a-f0-9]+:    b0 00                   mov    \$0x0,%al
 [      ]*[a-f0-9]+:    66 b8 00 00             mov    \$0x0,%ax
 [      ]*[a-f0-9]+:    b8 00 00 00 00          mov    \$0x0,%eax
@@ -115,7 +124,7 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    a1 00 00 00 00 00 00 00 00      movabs 0x0,%eax
 [      ]*[a-f0-9]+:    8b 04 25 00 00 00 00    mov    0x0,%eax
 [      ]*[a-f0-9]+:    8b 80 00 00 00 00       mov    0x0\(%rax\),%eax
-[      ]*[a-f0-9]+:    8b 05 00 00 00 00       mov    0x0\(%rip\),%eax        # 1d5 <bar\+0x2e>
+[      ]*[a-f0-9]+:    8b 05 00 00 00 00       mov    0x0\(%rip\),%eax        # [0-9a-f]+ <bar\+0x[0-9a-f]+>
 [      ]*[a-f0-9]+:    b0 00                   mov    \$0x0,%al
 [      ]*[a-f0-9]+:    66 b8 00 00             mov    \$0x0,%ax
 [      ]*[a-f0-9]+:    b8 00 00 00 00          mov    \$0x0,%eax
@@ -123,9 +132,9 @@ Disassembly of section .text:
 [      ]*[a-f0-9]+:    a1 00 00 00 00 00 00 00 00      movabs 0x0,%eax
 [      ]*[a-f0-9]+:    8b 04 25 00 00 00 00    mov    0x0,%eax
 [      ]*[a-f0-9]+:    8b 80 00 00 00 00       mov    0x0\(%rax\),%eax
-[      ]*[a-f0-9]+:    8b 05 00 00 00 00       mov    0x0\(%rip\),%eax        # 203 <foo>
+[      ]*[a-f0-9]+:    8b 05 00 00 00 00       mov    0x0\(%rip\),%eax        # [0-9a-f]+ <foo>
 
-0+203 <foo>:
+[0-9a-f]+ <foo>:
 [      ]*[a-f0-9]+:    a0 11 22 33 44 55 66 77 88      movabs 0x8877665544332211,%al
 [      ]*[a-f0-9]+:    66 a1 11 22 33 44 55 66 77 88   movabs 0x8877665544332211,%ax
 [      ]*[a-f0-9]+:    a1 11 22 33 44 55 66 77 88      movabs 0x8877665544332211,%eax
This page took 0.034579 seconds and 4 git commands to generate.