Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-ml / extern.asm
blobcec75ad2662eedd5f6207441f234880c1e738b64
1 ; RUN: llvm-ml -m32 -filetype=s %s /Fo - | FileCheck %s --check-prefixes=CHECK,CHECK-32
2 ; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s --check-prefixes=CHECK,CHECK-64
4 extern foo : dword, bar : word, baz : proc
5 ; CHECK: .extern foo
6 ; CHECK: .extern bar
7 ; CHECK: .extern baz
9 .code
10 mov ebx, foo
11 ; CHECK-32: mov ebx, dword ptr [foo]
12 ; CHECK-64: mov ebx, dword ptr [rip + foo]
14 mov bx, bar
15 ; CHECK-32: mov bx, word ptr [bar]
16 ; CHECK-64: mov bx, word ptr [rip + bar]
18 END