[llvm-commits] [llvm] r82419 - in /llvm/trunk/test/MC/AsmParser: ARM/ ARM/arm_word_directive.s ARM/dg.exp X86/ X86/dg.exp X86/x86_instructions.s X86/x86_operands.s X86/x86_word_directive.s arm_word_directive.s dg.exp x86_instructions.s x86_operands.s x86_word_directive.s

Daniel Dunbar daniel at zuster.org
Sun Sep 20 17:05:30 PDT 2009


Author: ddunbar
Date: Sun Sep 20 19:05:30 2009
New Revision: 82419

URL: http://llvm.org/viewvc/llvm-project?rev=82419&view=rev
Log:
Move ARM and X86 specific AsmParser tests into separate subdirectories, and only
run if appropriate target is supported.

Added:
    llvm/trunk/test/MC/AsmParser/ARM/
    llvm/trunk/test/MC/AsmParser/ARM/arm_word_directive.s
      - copied, changed from r82416, llvm/trunk/test/MC/AsmParser/arm_word_directive.s
    llvm/trunk/test/MC/AsmParser/ARM/dg.exp
    llvm/trunk/test/MC/AsmParser/X86/
    llvm/trunk/test/MC/AsmParser/X86/dg.exp
    llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s
      - copied, changed from r82416, llvm/trunk/test/MC/AsmParser/x86_instructions.s
    llvm/trunk/test/MC/AsmParser/X86/x86_operands.s
      - copied, changed from r82416, llvm/trunk/test/MC/AsmParser/x86_operands.s
    llvm/trunk/test/MC/AsmParser/X86/x86_word_directive.s
      - copied, changed from r82416, llvm/trunk/test/MC/AsmParser/x86_word_directive.s
Removed:
    llvm/trunk/test/MC/AsmParser/arm_word_directive.s
    llvm/trunk/test/MC/AsmParser/x86_instructions.s
    llvm/trunk/test/MC/AsmParser/x86_operands.s
    llvm/trunk/test/MC/AsmParser/x86_word_directive.s
Modified:
    llvm/trunk/test/MC/AsmParser/dg.exp

Copied: llvm/trunk/test/MC/AsmParser/ARM/arm_word_directive.s (from r82416, llvm/trunk/test/MC/AsmParser/arm_word_directive.s)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/ARM/arm_word_directive.s?p2=llvm/trunk/test/MC/AsmParser/ARM/arm_word_directive.s&p1=llvm/trunk/test/MC/AsmParser/arm_word_directive.s&r1=82416&r2=82419&rev=82419&view=diff

==============================================================================
    (empty)

Added: llvm/trunk/test/MC/AsmParser/ARM/dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/ARM/dg.exp?rev=82419&view=auto

==============================================================================
--- llvm/trunk/test/MC/AsmParser/ARM/dg.exp (added)
+++ llvm/trunk/test/MC/AsmParser/ARM/dg.exp Sun Sep 20 19:05:30 2009
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if { [llvm_supports_target ARM] } {
+  RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}

Added: llvm/trunk/test/MC/AsmParser/X86/dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/X86/dg.exp?rev=82419&view=auto

==============================================================================
--- llvm/trunk/test/MC/AsmParser/X86/dg.exp (added)
+++ llvm/trunk/test/MC/AsmParser/X86/dg.exp Sun Sep 20 19:05:30 2009
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if { [llvm_supports_target X86] } {
+  RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
+}

Copied: llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s (from r82416, llvm/trunk/test/MC/AsmParser/x86_instructions.s)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s?p2=llvm/trunk/test/MC/AsmParser/X86/x86_instructions.s&p1=llvm/trunk/test/MC/AsmParser/x86_instructions.s&r1=82416&r2=82419&rev=82419&view=diff

==============================================================================
    (empty)

Copied: llvm/trunk/test/MC/AsmParser/X86/x86_operands.s (from r82416, llvm/trunk/test/MC/AsmParser/x86_operands.s)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/X86/x86_operands.s?p2=llvm/trunk/test/MC/AsmParser/X86/x86_operands.s&p1=llvm/trunk/test/MC/AsmParser/x86_operands.s&r1=82416&r2=82419&rev=82419&view=diff

==============================================================================
    (empty)

Copied: llvm/trunk/test/MC/AsmParser/X86/x86_word_directive.s (from r82416, llvm/trunk/test/MC/AsmParser/x86_word_directive.s)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/X86/x86_word_directive.s?p2=llvm/trunk/test/MC/AsmParser/X86/x86_word_directive.s&p1=llvm/trunk/test/MC/AsmParser/x86_word_directive.s&r1=82416&r2=82419&rev=82419&view=diff

==============================================================================
    (empty)

Removed: llvm/trunk/test/MC/AsmParser/arm_word_directive.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/arm_word_directive.s?rev=82418&view=auto

==============================================================================
--- llvm/trunk/test/MC/AsmParser/arm_word_directive.s (original)
+++ llvm/trunk/test/MC/AsmParser/arm_word_directive.s (removed)
@@ -1,6 +0,0 @@
-@ RUN: llvm-mc -triple arm-unknown-unknown %s | FileCheck %s
-
-@ CHECK: TEST0:
-@ CHECK: .long 3
-TEST0:  
-        .word 3

Modified: llvm/trunk/test/MC/AsmParser/dg.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/dg.exp?rev=82419&r1=82418&r2=82419&view=diff

==============================================================================
--- llvm/trunk/test/MC/AsmParser/dg.exp (original)
+++ llvm/trunk/test/MC/AsmParser/dg.exp Sun Sep 20 19:05:30 2009
@@ -1,6 +1,4 @@
 load_lib llvm.exp
 
-if { [llvm_supports_target X86] } {
-  RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]]
-}
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{s}]]
 

Removed: llvm/trunk/test/MC/AsmParser/x86_instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/x86_instructions.s?rev=82418&view=auto

==============================================================================
--- llvm/trunk/test/MC/AsmParser/x86_instructions.s (original)
+++ llvm/trunk/test/MC/AsmParser/x86_instructions.s (removed)
@@ -1,58 +0,0 @@
-// FIXME: Switch back to FileCheck once we print actual instructions
-        
-// RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
-
-// CHECK: subb %al, %al
-        subb %al, %al
-
-// CHECK: addl $24, %eax
-        addl $24, %eax
-
-// CHECK: movl %eax, 10(%ebp)
-        movl %eax, 10(%ebp)
-// CHECK: movl %eax, 10(%ebp,%ebx)
-        movl %eax, 10(%ebp, %ebx)
-// CHECK: movl %eax, 10(%ebp,%ebx,4)
-        movl %eax, 10(%ebp, %ebx, 4)
-// CHECK: movl %eax, 10(,%ebx,4)
-        movl %eax, 10(, %ebx, 4)
-
-// FIXME: Check that this matches SUB32ri8
-// CHECK: subl $1, %eax
-        subl $1, %eax
-        
-// FIXME: Check that this matches SUB32ri8
-// CHECK: subl $-1, %eax
-        subl $-1, %eax
-        
-// FIXME: Check that this matches SUB32ri
-// CHECK: subl $256, %eax
-        subl $256, %eax
-
-// FIXME: Check that this matches XOR64ri8
-// CHECK: xorq $1, %rax
-        xorq $1, %rax
-        
-// FIXME: Check that this matches XOR64ri32
-// CHECK: xorq $256, %rax
-        xorq $256, %rax
-
-// FIXME: Check that this matches SUB8rr
-// CHECK: subb %al, %bl
-        subb %al, %bl
-
-// FIXME: Check that this matches SUB16rr
-// CHECK: subw %ax, %bx
-        subw %ax, %bx
-        
-// FIXME: Check that this matches SUB32rr
-// CHECK: subl %eax, %ebx
-        subl %eax, %ebx
-        
-// FIXME: Check that this matches the correct instruction.
-// CHECK: call *%rax
-        call *%rax
-
-// FIXME: Check that this matches the correct instruction.
-// CHECK: shldl %cl, %eax, %ebx
-        shldl %cl, %eax, %ebx

Removed: llvm/trunk/test/MC/AsmParser/x86_operands.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/x86_operands.s?rev=82418&view=auto

==============================================================================
--- llvm/trunk/test/MC/AsmParser/x86_operands.s (original)
+++ llvm/trunk/test/MC/AsmParser/x86_operands.s (removed)
@@ -1,58 +0,0 @@
-// FIXME: Actually test that we get the expected results.
-        
-// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
-
-# Immediates
-# CHECK: addl $1, %eax
-        addl $1, %eax
-# CHECK: addl $1+2, %eax
-        addl $(1+2), %eax
-# CHECK: addl $a, %eax
-        addl $a, %eax
-# CHECK: addl $1+2, %eax
-        addl $1 + 2, %eax
-        
-# Disambiguation
-
-        # FIXME: Add back when we can match this.
-        #addl $1, 4+4
-        # FIXME: Add back when we can match this.
-        #addl $1, (4+4)
-# CHECK: addl $1, 4+4(%eax)
-        addl $1, 4+4(%eax)
-# CHECK: addl $1, 4+4(%eax)
-        addl $1, (4+4)(%eax)
-# CHECK: addl $1, 8(%eax)
-        addl $1, 8(%eax)
-# CHECK: addl $1, 0(%eax)
-        addl $1, (%eax)
-# CHECK: addl $1, 4+4(,%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: call a
-        call a
-# CHECK: call *%eax
-        call *%eax
-# CHECK: call *4(%eax)
-        call *4(%eax)
-
-        

Removed: llvm/trunk/test/MC/AsmParser/x86_word_directive.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/x86_word_directive.s?rev=82418&view=auto

==============================================================================
--- llvm/trunk/test/MC/AsmParser/x86_word_directive.s (original)
+++ llvm/trunk/test/MC/AsmParser/x86_word_directive.s (removed)
@@ -1,6 +0,0 @@
-# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
-
-# CHECK: TEST0:
-# CHECK: .short 3
-TEST0:  
-        .word 3





More information about the llvm-commits mailing list