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
This commit is contained in:
NAKAMURA Takumi
2011-03-16 13:52:51 +00:00
parent ddbfbcf72e
commit 37947c6bad
7 changed files with 141 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
; RUN: llc < %s -o - -march=x86-64 | FileCheck %s
; RUN: llc < %s -o - -mtriple=x86_64-linux | FileCheck %s
; RUN: llc < %s -o - -mtriple=x86_64-win32 | FileCheck %s -check-prefix=WIN64
; PR4891
; Both loads should happen before either store.
@@ -8,6 +9,11 @@
; CHECK: movl %ecx, (%rdi)
; CHECK: movl %eax, (%rsi)
; WIN64: movl (%rcx), %eax
; WIN64: movl (%rdx), %esi
; WIN64: movl %esi, (%rcx)
; WIN64: movl %eax, (%rdx)
define void @short2_int_swap(<2 x i16>* nocapture %b, i32* nocapture %c) nounwind {
entry:
%0 = load <2 x i16>* %b, align 2 ; <<2 x i16>> [#uses=1]