Update the X86 assembler matcher test case now that a few more things match
authorKevin Enderby <enderby@apple.com>
Thu, 11 Feb 2010 00:13:43 +0000 (00:13 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 11 Feb 2010 00:13:43 +0000 (00:13 +0000)
with some of the recent changes that have gone into llvm-mc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95826 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/AsmParser/X86/x86_32-bit_cat.s

index f610b13c686a1a313967ea969e3f249f49cda812..61cffc76fa61b4194c0805eb6189eb06fb25904d 100644 (file)
@@ -1,7 +1,7 @@
 // This is the current set of tests that can pass though llvm-mc as it were a
 // logical cat(1) and then reassemble to the same instruction.  All of these
 // will not yet encode correctly.  The subset that will encode correctly are in
-// the file x86_32-bit.s .
+// the file x86_32-encoding.s (and other tests that encode are in x86_32-bit.s).
 
 // RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
 
 // CHECK:      rcrb    $127, 305419896
                rcrb    $0x7f,0x12345678
 
+// CHECK:      shll    $0, 3735928559(%ebx,%ecx,8)
+               sall    $0,0xdeadbeef(%ebx,%ecx,8)
+
+// CHECK:      shll    $0, 69
+               sall    $0,0x45
+
+// CHECK:      shll    $0, 32493
+               sall    $0,0x7eed
+
+// CHECK:      shll    $0, 3133065982
+               sall    $0,0xbabecafe
+
+// CHECK:      shll    $0, 305419896
+               sall    $0,0x12345678
+
+// CHECK:      shlb    $127, 3735928559(%ebx,%ecx,8)
+               salb    $0x7f,0xdeadbeef(%ebx,%ecx,8)
+
+// CHECK:      shlb    $127, 69
+               salb    $0x7f,0x45
+
+// CHECK:      shlb    $127, 32493
+               salb    $0x7f,0x7eed
+
+// CHECK:      shlb    $127, 3133065982
+               salb    $0x7f,0xbabecafe
+
+// CHECK:      shlb    $127, 305419896
+               salb    $0x7f,0x12345678
+
+// CHECK:      shll    3735928559(%ebx,%ecx,8)
+               sall    0xdeadbeef(%ebx,%ecx,8)
+
+// CHECK:      shlw    32493
+               salw    0x7eed
+
+// CHECK:      shll    3133065982
+               sall    0xbabecafe
+
+// CHECK:      shll    305419896
+               sall    0x12345678
+
 // CHECK:      shll    $0, 3735928559(%ebx,%ecx,8)
                shll    $0,0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      jmp     -77129852792157442
                jmp     0xfeedfacebabecafe
 
-// CHECK:      jmp     *3735928559(%ebx,%ecx,8)
+// CHECK:      jmp     *3735928559(%ebx,%ecx,8)  # TAILCALL
                jmp     *0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      jmp     32493
 // CHECK:      jmp     305419896
                jmp     0x12345678
 
-// CHECK:      jmp     *3135175374
+// CHECK:      jmp     *3135175374  # TAILCALL
                jmp     *0xbadeface
 
-// CHECK:      jmp     *3735928559(%ebx,%ecx,8)
+// CHECK:      jmp     *3735928559(%ebx,%ecx,8)  # TAILCALL
                jmp     *0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      jmp     32493
 // CHECK:      jmp     305419896
                jmp     0x12345678
 
-// CHECK:      jmp     *3135175374
+// CHECK:      jmp     *3135175374  # TAILCALL
                jmp     *0xbadeface
 
 // CHECK:      ljmpl   *3735928559(%ebx,%ecx,8)
 // CHECK:      verw    305419896
                verw    0x12345678
 
+// CHECK:      fld     %st(2)
+               fld     %st(2)
+
 // CHECK:      fldl    3735928559(%ebx,%ecx,8)
                fldl    0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fldl    305419896
                fldl    0x12345678
 
+// CHECK:      fld     %st(2)
+               fld     %st(2)
+
 // CHECK:      fildl   3735928559(%ebx,%ecx,8)
                fildl   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fbld    305419896
                fbld    0x12345678
 
+// CHECK:      fst     %st(2)
+               fst     %st(2)
+
 // CHECK:      fstl    3735928559(%ebx,%ecx,8)
                fstl    0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fstl    305419896
                fstl    0x12345678
 
+// CHECK:      fst     %st(2)
+               fst     %st(2)
+
 // CHECK:      fistl   3735928559(%ebx,%ecx,8)
                fistl   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fistl   305419896
                fistl   0x12345678
 
+// CHECK:      fstp    %st(2)
+               fstp    %st(2)
+
 // CHECK:      fstpl   3735928559(%ebx,%ecx,8)
                fstpl   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fstpl   305419896
                fstpl   0x12345678
 
+// CHECK:      fstp    %st(2)
+               fstp    %st(2)
+
 // CHECK:      fistpl  3735928559(%ebx,%ecx,8)
                fistpl  0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fbstp   305419896
                fbstp   0x12345678
 
+// CHECK:      fxch    %st(2)
+               fxch    %st(2)
+
+// CHECK:      fcom    %st(2)
+               fcom    %st(2)
+
 // CHECK:      fcoml   3735928559(%ebx,%ecx,8)
                fcoml   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fcoml   305419896
                fcoml   0x12345678
 
+// CHECK:      fcom    %st(2)
+               fcom    %st(2)
+
 // CHECK:      ficoml  3735928559(%ebx,%ecx,8)
                ficoml  0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      ficoml  305419896
                ficoml  0x12345678
 
+// CHECK:      fcomp   %st(2)
+               fcomp   %st(2)
+
 // CHECK:      fcompl  3735928559(%ebx,%ecx,8)
                fcompl  0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fcompl  305419896
                fcompl  0x12345678
 
+// CHECK:      fcomp   %st(2)
+               fcomp   %st(2)
+
 // CHECK:      ficompl 3735928559(%ebx,%ecx,8)
                ficompl 0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fcompp
                fcompp
 
+// CHECK:      fucom   %st(2)
+               fucom   %st(2)
+
+// CHECK:      fucomp  %st(2)
+               fucomp  %st(2)
+
 // CHECK:      fucompp
                fucompp
 
 // CHECK:      fldz
                fldz
 
+// CHECK:      fadd    %st(2)
+               fadd    %st(2)
+
 // CHECK:      faddl   3735928559(%ebx,%ecx,8)
                faddl   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fiaddl  305419896
                fiaddl  0x12345678
 
+// CHECK:      faddp   %st(2)
+               faddp   %st(2)
+
+// CHECK:      fsub    %st(2)
+               fsub    %st(2)
+
 // CHECK:      fsubl   3735928559(%ebx,%ecx,8)
                fsubl   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fisubl  305419896
                fisubl  0x12345678
 
+// CHECK:      fsubp   %st(2)
+               fsubp   %st(2)
+
+// CHECK:      fsubr   %st(2)
+               fsubr   %st(2)
+
 // CHECK:      fsubrl  3735928559(%ebx,%ecx,8)
                fsubrl  0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fisubrl 305419896
                fisubrl 0x12345678
 
+// CHECK:      fsubrp  %st(2)
+               fsubrp  %st(2)
+
+// CHECK:      fmul    %st(2)
+               fmul    %st(2)
+
 // CHECK:      fmull   3735928559(%ebx,%ecx,8)
                fmull   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fimull  305419896
                fimull  0x12345678
 
+// CHECK:      fmulp   %st(2)
+               fmulp   %st(2)
+
+// CHECK:      fdiv    %st(2)
+               fdiv    %st(2)
+
 // CHECK:      fdivl   3735928559(%ebx,%ecx,8)
                fdivl   0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fidivl  305419896
                fidivl  0x12345678
 
+// CHECK:      fdivp   %st(2)
+               fdivp   %st(2)
+
+// CHECK:      fdivr   %st(2)
+               fdivr   %st(2)
+
 // CHECK:      fdivrl  3735928559(%ebx,%ecx,8)
                fdivrl  0xdeadbeef(%ebx,%ecx,8)
 
 // CHECK:      fidivrl 305419896
                fidivrl 0x12345678
 
+// CHECK:      fdivrp  %st(2)
+               fdivrp  %st(2)
+
 // CHECK:      f2xm1
                f2xm1
 
 // CHECK:      frstor  32493
                frstor  0x7eed
 
+// CHECK:      ffree   %st(2)
+               ffree   %st(2)
+
 // CHECK:      fnop
                fnop
 
 // CHECK:      ud2
                ud2
 
+// CHECK:      fcmovb  %st(2), %st(0)
+               fcmovb  %st(2),%st
+
+// CHECK:      fcmove  %st(2), %st(0)
+               fcmove  %st(2),%st
+
+// CHECK:      fcmovbe %st(2), %st(0)
+               fcmovbe %st(2),%st
+
+// CHECK:      fcmovu   %st(2), %st(0)
+               fcmovu  %st(2),%st
+
+// CHECK:      fcmovnb %st(2), %st(0)
+               fcmovnb %st(2),%st
+
+// CHECK:      fcmovne %st(2), %st(0)
+               fcmovne %st(2),%st
+
+// CHECK:      fcmovnbe        %st(2), %st(0)
+               fcmovnbe        %st(2),%st
+
+// CHECK:      fcmovnu %st(2), %st(0)
+               fcmovnu %st(2),%st
+
+// CHECK:      fcomi   %st(2), %st(0)
+               fcomi   %st(2),%st
+
+// CHECK:      fucomi  %st(2), %st(0)
+               fucomi  %st(2),%st
+
+// CHECK:      fcomip  %st(2), %st(0)
+               fcomip  %st(2),%st
+
+// CHECK:      fucomip %st(2), %st(0)
+               fucomip %st(2),%st
+
 // CHECK:      movnti  %ecx, 3735928559(%ebx,%ecx,8)
                movnti  %ecx,0xdeadbeef(%ebx,%ecx,8)