mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
0614f2a55e
Summary: There are a number of files in the tree which have been accidentally checked in with DOS line endings. Convert these to native line endings. There are also a few files which have DOS line endings on purpose, and I have set the svn:eol-style property to 'CRLF' on those. Reviewers: joerg, aaron.ballman Subscribers: aaron.ballman, sanjoy, dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D15848 llvm-svn: 256707
26 lines
676 B
LLVM
26 lines
676 B
LLVM
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=knl --show-mc-encoding| FileCheck %s
|
|
declare i32 @llvm.x86.rdpkru()
|
|
declare void @llvm.x86.wrpkru(i32)
|
|
|
|
define void @test_x86_wrpkru(i32 %src) {
|
|
; CHECK-LABEL: test_x86_wrpkru:
|
|
; CHECK: ## BB#0:
|
|
; CHECK-NEXT: xorl %ecx, %ecx
|
|
; CHECK-NEXT: xorl %edx, %edx
|
|
; CHECK-NEXT: movl %edi, %eax
|
|
; CHECK-NEXT: wrpkru
|
|
; CHECK-NEXT: retq
|
|
call void @llvm.x86.wrpkru(i32 %src)
|
|
ret void
|
|
}
|
|
|
|
define i32 @test_x86_rdpkru() {
|
|
; CHECK-LABEL: test_x86_rdpkru:
|
|
; CHECK: ## BB#0:
|
|
; CHECK-NEXT: xorl %ecx, %ecx
|
|
; CHECK-NEXT: rdpkru
|
|
; CHECK-NEXT: retq
|
|
%res = call i32 @llvm.x86.rdpkru()
|
|
ret i32 %res
|
|
}
|