1; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+xsave | FileCheck %s 2 3define void @test_xsave(i8* %ptr, i32 %hi, i32 %lo) { 4; CHECK-LABEL: test_xsave 5; CHECK: movl 8(%esp), %edx 6; CHECK: movl 12(%esp), %eax 7; CHECK: movl 4(%esp), %ecx 8; CHECK: xsave (%ecx) 9 call void @llvm.x86.xsave(i8* %ptr, i32 %hi, i32 %lo) 10 ret void; 11} 12declare void @llvm.x86.xsave(i8*, i32, i32) 13 14define void @test_xrstor(i8* %ptr, i32 %hi, i32 %lo) { 15; CHECK-LABEL: test_xrstor 16; CHECK: movl 8(%esp), %edx 17; CHECK: movl 12(%esp), %eax 18; CHECK: movl 4(%esp), %ecx 19; CHECK: xrstor (%ecx) 20 call void @llvm.x86.xrstor(i8* %ptr, i32 %hi, i32 %lo) 21 ret void; 22} 23declare void @llvm.x86.xrstor(i8*, i32, i32) 24