diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-01 04:32:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-01 04:32:20 +0000 |
commit | 09755f5f7afe21c973782ce91aa3325688046b19 (patch) | |
tree | 40d1f73b866a42ee8f4344e237a0afd77ae63352 /test/MC/X86/x86_operands.s | |
parent | ab41cc675f39a15819f6429c08e32ec127488a11 (diff) | |
download | external_llvm-09755f5f7afe21c973782ce91aa3325688046b19.zip external_llvm-09755f5f7afe21c973782ce91aa3325688046b19.tar.gz external_llvm-09755f5f7afe21c973782ce91aa3325688046b19.tar.bz2 |
move X86 subdir up a level
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86/x86_operands.s')
-rw-r--r-- | test/MC/X86/x86_operands.s | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/test/MC/X86/x86_operands.s b/test/MC/X86/x86_operands.s new file mode 100644 index 0000000..b34713d --- /dev/null +++ b/test/MC/X86/x86_operands.s @@ -0,0 +1,58 @@ +// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s + +# Immediates +# CHECK: addl $1, %eax + addl $1, %eax +# CHECK: addl $3, %eax + addl $(1+2), %eax +# CHECK: addl $a, %eax + addl $a, %eax +# CHECK: addl $3, %eax + addl $1 + 2, %eax + +# Disambiguation + +# CHECK: addl $1, 8 + addl $1, 4+4 +# CHECK: addl $1, 8 + addl $1, (4+4) +# CHECK: addl $1, 8(%eax) + addl $1, 4+4(%eax) +# CHECK: addl $1, 8(%eax) + addl $1, (4+4)(%eax) +# CHECK: addl $1, 8(%eax) + addl $1, 8(%eax) +# CHECK: addl $1, (%eax) + addl $1, (%eax) +# CHECK: addl $1, 8(,%eax) + addl $1, (4+4)(,%eax) + +# Indirect Memory Operands +# CHECK: addl $1, 1(%eax) + addl $1, 1(%eax) +# CHECK: addl $1, 1(%eax,%ebx) + addl $1, 1(%eax,%ebx) +# CHECK: addl $1, 1(%eax,%ebx) + addl $1, 1(%eax,%ebx,) +# CHECK: addl $1, 1(%eax,%ebx,4) + addl $1, 1(%eax,%ebx,4) +# CHECK: addl $1, 1(,%ebx) + addl $1, 1(,%ebx) +# CHECK: addl $1, 1(,%ebx) + addl $1, 1(,%ebx,) +# CHECK: addl $1, 1(,%ebx,4) + addl $1, 1(,%ebx,4) +# CHECK: addl $1, 1(,%ebx,4) + addl $1, 1(,%ebx,(2+2)) + +# '*' +# CHECK: calll a + call a +# CHECK: calll *%eax + call *%eax +# CHECK: calll *4(%eax) + call *4(%eax) + +# CHECK: movl %gs:8, %eax +movl %gs:8, %eax + |