Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / X86 / code16-32-64.s
blobeda2edf1d9b72bd3d53b529fb355db736dbdc0bd
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