1 ; RUN: llc < %s -mtriple=x86_64-linux -mattr=+sse3 | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-win32 -mattr=+sse3 | FileCheck %s -check-prefix=WIN64
6 ; CHECK: leaq (%rdi), %rax
7 ; CHECK-NEXT: movl %esi, %ecx
10 ; WIN64: leaq (%rcx), %rax
11 ; WIN64-NEXT: movl %edx, %ecx
12 ; WIN64-NEXT: movl %r8d, %edx
14 define void @foo(i8* %P, i32 %E, i32 %H) nounwind {
16 tail call void @llvm.x86.sse3.monitor(i8* %P, i32 %E, i32 %H)
20 declare void @llvm.x86.sse3.monitor(i8*, i32, i32) nounwind
23 ; CHECK: movl %edi, %ecx
24 ; CHECK-NEXT: movl %esi, %eax
27 ; WIN64: movl %edx, %eax
29 define void @bar(i32 %E, i32 %H) nounwind {
31 tail call void @llvm.x86.sse3.mwait(i32 %E, i32 %H)
35 declare void @llvm.x86.sse3.mwait(i32, i32) nounwind