mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
d11176227c
Similar to the wbinvd instruction, except this one does not invalidate caches. Ring 0 only. The encoding matches a wbinvd instruction with an F3 prefix. Reviewers: craig.topper, zvi, ashlykov Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D43816 llvm-svn: 329847
19 lines
622 B
LLVM
19 lines
622 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+wbnoinvd | FileCheck %s -check-prefix=CHECK32
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+wbnoinvd | FileCheck %s -check-prefix=CHECK64
|
|
|
|
define void @wbnoinvd() nounwind {
|
|
; CHECK32-LABEL: wbnoinvd:
|
|
; CHECK32: # %bb.0:
|
|
; CHECK32-NEXT: wbnoinvd
|
|
; CHECK32-NEXT: retl
|
|
;
|
|
; CHECK64-LABEL: wbnoinvd:
|
|
; CHECK64: # %bb.0:
|
|
; CHECK64-NEXT: wbnoinvd
|
|
; CHECK64-NEXT: retq
|
|
tail call void @llvm.x86.wbnoinvd()
|
|
ret void
|
|
}
|
|
declare void @llvm.x86.wbnoinvd() nounwind
|