Eric Christopher | 228232b | 2010-11-30 07:20:12 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -o - -march=x86-64 | FileCheck %s |
| 2 | ; PR8573 |
| 3 | |
| 4 | ; CHECK: _foo: |
| 5 | ; CHECK: leaq (%rdi), %rax |
| 6 | ; CHECK-NEXT: movl %esi, %ecx |
| 7 | ; CHECK-NEXT: monitor |
| 8 | define void @foo(i8* %P, i32 %E, i32 %H) nounwind { |
| 9 | entry: |
| 10 | tail call void @llvm.x86.sse3.monitor(i8* %P, i32 %E, i32 %H) |
| 11 | ret void |
| 12 | } |
| 13 | |
| 14 | declare void @llvm.x86.sse3.monitor(i8*, i32, i32) nounwind |
| 15 | |
| 16 | ; CHECK: _bar: |
| 17 | ; CHECK: movl %edi, %ecx |
| 18 | ; CHECK-NEXT: movl %esi, %eax |
| 19 | ; CHECK-NEXT: mwait |
| 20 | define void @bar(i32 %E, i32 %H) nounwind { |
| 21 | entry: |
| 22 | tail call void @llvm.x86.sse3.mwait(i32 %E, i32 %H) |
| 23 | ret void |
| 24 | } |
| 25 | |
| 26 | declare void @llvm.x86.sse3.mwait(i32, i32) nounwind |