diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/test-shrink.ll | 21 | 
1 files changed, 11 insertions, 10 deletions
| diff --git a/llvm/test/CodeGen/X86/test-shrink.ll b/llvm/test/CodeGen/X86/test-shrink.ll index 1d636930641..5bc28ecbc48 100644 --- a/llvm/test/CodeGen/X86/test-shrink.ll +++ b/llvm/test/CodeGen/X86/test-shrink.ll @@ -1,8 +1,9 @@ -; RUN: llc < %s -march=x86-64 | FileCheck %s --check-prefix=CHECK-64 +; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s --check-prefix=CHECK-64 +; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s --check-prefix=CHECK-64  ; RUN: llc < %s -march=x86 | FileCheck %s --check-prefix=CHECK-32  ; CHECK-64: g64xh: -; CHECK-64:   testb $8, %ah +; CHECK-64:   testb $8, {{%ah|%ch}}  ; CHECK-64:   ret  ; CHECK-32: g64xh:  ; CHECK-32:   testb $8, %ah @@ -19,7 +20,7 @@ no:    ret void  }  ; CHECK-64: g64xl: -; CHECK-64:   testb $8, %dil +; CHECK-64:   testb $8, [[A0L:%dil|%cl]]  ; CHECK-64:   ret  ; CHECK-32: g64xl:  ; CHECK-32:   testb $8, %al @@ -36,7 +37,7 @@ no:    ret void  }  ; CHECK-64: g32xh: -; CHECK-64:   testb $8, %ah +; CHECK-64:   testb $8, {{%ah|%ch}}  ; CHECK-64:   ret  ; CHECK-32: g32xh:  ; CHECK-32:   testb $8, %ah @@ -53,7 +54,7 @@ no:    ret void  }  ; CHECK-64: g32xl: -; CHECK-64:   testb $8, %dil +; CHECK-64:   testb $8, [[A0L]]  ; CHECK-64:   ret  ; CHECK-32: g32xl:  ; CHECK-32:   testb $8, %al @@ -70,7 +71,7 @@ no:    ret void  }  ; CHECK-64: g16xh: -; CHECK-64:   testb $8, %ah +; CHECK-64:   testb $8, {{%ah|%ch}}  ; CHECK-64:   ret  ; CHECK-32: g16xh:  ; CHECK-32:   testb $8, %ah @@ -87,7 +88,7 @@ no:    ret void  }  ; CHECK-64: g16xl: -; CHECK-64:   testb $8, %dil +; CHECK-64:   testb $8, [[A0L]]  ; CHECK-64:   ret  ; CHECK-32: g16xl:  ; CHECK-32:   testb $8, %al @@ -104,7 +105,7 @@ no:    ret void  }  ; CHECK-64: g64x16: -; CHECK-64:   testw $-32640, %di +; CHECK-64:   testw $-32640, %[[A0W:di|cx]]  ; CHECK-64:   ret  ; CHECK-32: g64x16:  ; CHECK-32:   testw $-32640, %ax @@ -121,7 +122,7 @@ no:    ret void  }  ; CHECK-64: g32x16: -; CHECK-64:   testw $-32640, %di +; CHECK-64:   testw $-32640, %[[A0W]]  ; CHECK-64:   ret  ; CHECK-32: g32x16:  ; CHECK-32:   testw $-32640, %ax @@ -138,7 +139,7 @@ no:    ret void  }  ; CHECK-64: g64x32: -; CHECK-64:   testl $268468352, %edi +; CHECK-64:   testl $268468352, %e[[A0W]]  ; CHECK-64:   ret  ; CHECK-32: g64x32:  ; CHECK-32:   testl $268468352, %eax | 

