[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / X86 / code16-32-64.s
blob42da46a06d083ed55010fcd88360cbf8655d25f3
1 # RUN: llvm-mc %s -triple x86_64-linux-gnu -filetype=obj -o - | llvm-objdump -d - | FileCheck %s
2 # RUN: llvm-mc %s -triple x86_64-windows-msvc -filetype=obj -o - | llvm-objdump -d - | FileCheck %s
3 # RUN: llvm-mc %s -triple x86_64-apple-macos -filetype=obj -o - | llvm-objdump -d - | FileCheck %s
5 .text
6 .global foo
7 foo:
8 .code64
9 movl (%eax), %eax
10 .code32
11 movl (%eax), %eax
12 .code16
13 movl (%eax), %eax
14 .code64
15 retq
17 # CHECK: foo:
18 # CHECK-NEXT: 67 8b 00 movl (%eax), %eax
19 # CHECK-NEXT: 8b 00 movl (%rax), %eax
20 # CHECK-NEXT: 67 66 8b 00 movw (%eax), %ax
21 # CHECK-NEXT: c3 retq