From b8ba13f0096b560ee618512019ca86969a9fa772 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 18 Jan 2012 22:42:29 +0000 Subject: Process instructions after match to select alternative encoding which may be more desirable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148431 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/X86/intel-syntax.s | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test/MC/X86/intel-syntax.s') diff --git a/test/MC/X86/intel-syntax.s b/test/MC/X86/intel-syntax.s index 46d3761..6f4c77a 100644 --- a/test/MC/X86/intel-syntax.s +++ b/test/MC/X86/intel-syntax.s @@ -29,4 +29,28 @@ _main: movzx EDI, WORD PTR [RCX + 2] // CHECK: callq _test call _test +// CHECK: andw $12, %ax + and ax, 12 +// CHECK: andw $-12, %ax + and ax, -12 +// CHECK: andw $257, %ax + and ax, 257 +// CHECK: andw $-257, %ax + and ax, -257 +// CHECK: andl $12, %eax + and eax, 12 +// CHECK: andl $-12, %eax + and eax, -12 +// CHECK: andl $257, %eax + and eax, 257 +// CHECK: andl $-257, %eax + and eax, -257 +// CHECK: andq $12, %rax + and rax, 12 +// CHECK: andq $-12, %rax + and rax, -12 +// CHECK: andq $257, %rax + and rax, 257 +// CHECK: andq $-257, %rax + and rax, -257 ret -- cgit v1.1