1; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+fxsr | FileCheck %s 2 3define 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} 9declare void @llvm.x86.fxsave(i8*) 10 11define 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} 17declare void @llvm.x86.fxsave64(i8*) 18 19define 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} 25declare void @llvm.x86.fxrstor(i8*) 26 27define 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} 33declare void @llvm.x86.fxrstor64(i8*) 34