diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-16 13:52:51 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-16 13:52:51 +0000 |
commit | 37947c6bad087605f07d73a0a418c3781e2eaaa9 (patch) | |
tree | 33a4752c9698fcfe35ffdf3032aa621851f35fe7 /test/CodeGen/X86/h-register-store.ll | |
parent | ddbfbcf72e72d18b5aa149f37227961eac828030 (diff) | |
download | external_llvm-37947c6bad087605f07d73a0a418c3781e2eaaa9.zip external_llvm-37947c6bad087605f07d73a0a418c3781e2eaaa9.tar.gz external_llvm-37947c6bad087605f07d73a0a418c3781e2eaaa9.tar.bz2 |
test/CodeGen/X86: Add a pattern for Win64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/h-register-store.ll')
-rw-r--r-- | test/CodeGen/X86/h-register-store.ll | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/test/CodeGen/X86/h-register-store.ll b/test/CodeGen/X86/h-register-store.ll index d30e6b3..0adb2b1 100644 --- a/test/CodeGen/X86/h-register-store.ll +++ b/test/CodeGen/X86/h-register-store.ll @@ -1,9 +1,29 @@ -; RUN: llc < %s -march=x86-64 > %t -; RUN: grep mov %t | count 6 -; RUN: grep {movb %ah, (%rsi)} %t | count 3 -; RUN: llc < %s -march=x86 > %t -; RUN: grep mov %t | count 3 -; RUN: grep {movb %ah, (%e} %t | count 3 +; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=X64 +; X64: mov +; X64-NEXT: movb %ah, (%rsi) +; X64: mov +; X64-NEXT: movb %ah, (%rsi) +; X64: mov +; X64-NEXT: movb %ah, (%rsi) +; X64-NOT: mov + +; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s -check-prefix=W64 +; W64-NOT: mov +; W64: movb %ch, (%rdx) +; W64-NOT: mov +; W64: movb %ch, (%rdx) +; W64-NOT: mov +; W64: movb %ch, (%rdx) +; W64-NOT: mov + +; RUN: llc < %s -march=x86 | FileCheck %s -check-prefix=X32 +; X32-NOT: mov +; X32: movb %ah, (%e +; X32-NOT: mov +; X32: movb %ah, (%e +; X32-NOT: mov +; X32: movb %ah, (%e +; X32-NOT: mov ; Use h-register extract and store. |