Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+fxsr | FileCheck %s
      2 
      3 define void @test_fxsave(i8* %ptr) {
      4 ; CHECK-LABEL: test_fxsave
      5 ; CHECK: fxsave
      6   call void @llvm.x86.fxsave(i8* %ptr)
      7   ret void;
      8 }
      9 declare void @llvm.x86.fxsave(i8*)
     10 
     11 define void @test_fxsave64(i8* %ptr) {
     12 ; CHECK-LABEL: test_fxsave64
     13 ; CHECK: fxsave64
     14   call void @llvm.x86.fxsave64(i8* %ptr)
     15   ret void;
     16 }
     17 declare void @llvm.x86.fxsave64(i8*)
     18 
     19 define void @test_fxrstor(i8* %ptr) {
     20 ; CHECK-LABEL: test_fxrstor
     21 ; CHECK: fxrstor
     22   call void @llvm.x86.fxrstor(i8* %ptr)
     23   ret void;
     24 }
     25 declare void @llvm.x86.fxrstor(i8*)
     26 
     27 define void @test_fxrstor64(i8* %ptr) {
     28 ; CHECK-LABEL: test_fxrstor64
     29 ; CHECK: fxrstor64
     30   call void @llvm.x86.fxrstor64(i8* %ptr)
     31   ret void;
     32 }
     33 declare void @llvm.x86.fxrstor64(i8*)
     34