mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 06:06:19 +00:00
c459d06ae6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120418 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
624 B
LLVM
27 lines
624 B
LLVM
; RUN: llc < %s -o - -march=x86-64 | FileCheck %s
|
|
; PR8573
|
|
|
|
; CHECK: foo:
|
|
; CHECK: leaq (%rdi), %rax
|
|
; CHECK-NEXT: movl %esi, %ecx
|
|
; CHECK-NEXT: monitor
|
|
define void @foo(i8* %P, i32 %E, i32 %H) nounwind {
|
|
entry:
|
|
tail call void @llvm.x86.sse3.monitor(i8* %P, i32 %E, i32 %H)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.x86.sse3.monitor(i8*, i32, i32) nounwind
|
|
|
|
; CHECK: bar:
|
|
; CHECK: movl %edi, %ecx
|
|
; CHECK-NEXT: movl %esi, %eax
|
|
; CHECK-NEXT: mwait
|
|
define void @bar(i32 %E, i32 %H) nounwind {
|
|
entry:
|
|
tail call void @llvm.x86.sse3.mwait(i32 %E, i32 %H)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.x86.sse3.mwait(i32, i32) nounwind
|