mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
501cad951b
Add intrinsics for the FXSR instructions (FXSAVE/FXSAVE64/FXRSTOR/FXRSTOR64) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241049 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
406 B
LLVM
18 lines
406 B
LLVM
; RUN: llc < %s -mtriple=i686-unknown-unknown | 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_fxrstor(i8* %ptr) {
|
|
; CHECK-LABEL: test_fxrstor
|
|
; CHECK: fxrstor
|
|
call void @llvm.x86.fxrstor(i8* %ptr)
|
|
ret void;
|
|
}
|
|
declare void @llvm.x86.fxrstor(i8*)
|