mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
0f31d547eb
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250497 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
782 B
LLVM
34 lines
782 B
LLVM
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+fxsr | FileCheck %s
|
|
|
|
define void @test_fxsave(i8* %ptr) {
|
|
; CHECK-LABEL: test_fxsave
|
|
; CHECK: fxsave
|
|
call void @llvm.x86.fxsave(i8* %ptr)
|
|
ret void;
|
|
}
|
|
declare void @llvm.x86.fxsave(i8*)
|
|
|
|
define void @test_fxsave64(i8* %ptr) {
|
|
; CHECK-LABEL: test_fxsave64
|
|
; CHECK: fxsave64
|
|
call void @llvm.x86.fxsave64(i8* %ptr)
|
|
ret void;
|
|
}
|
|
declare void @llvm.x86.fxsave64(i8*)
|
|
|
|
define void @test_fxrstor(i8* %ptr) {
|
|
; CHECK-LABEL: test_fxrstor
|
|
; CHECK: fxrstor
|
|
call void @llvm.x86.fxrstor(i8* %ptr)
|
|
ret void;
|
|
}
|
|
declare void @llvm.x86.fxrstor(i8*)
|
|
|
|
define void @test_fxrstor64(i8* %ptr) {
|
|
; CHECK-LABEL: test_fxrstor64
|
|
; CHECK: fxrstor64
|
|
call void @llvm.x86.fxrstor64(i8* %ptr)
|
|
ret void;
|
|
}
|
|
declare void @llvm.x86.fxrstor64(i8*)
|