mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
@@ -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]
|
||||
|
Reference in New Issue
Block a user