1 ; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+xsave,+xsaves | FileCheck %s
3 define void @test_xsaves(ptr %ptr, i32 %hi, i32 %lo) {
4 ; CHECK-LABEL: test_xsaves
5 ; CHECK: movl 8(%esp), %edx
6 ; CHECK: movl 12(%esp), %eax
7 ; CHECK: movl 4(%esp), %ecx
9 call void @llvm.x86.xsaves(ptr %ptr, i32 %hi, i32 %lo)
12 declare void @llvm.x86.xsaves(ptr, i32, i32)
14 define void @test_xrstors(ptr %ptr, i32 %hi, i32 %lo) {
15 ; CHECK-LABEL: test_xrstors
16 ; CHECK: movl 8(%esp), %edx
17 ; CHECK: movl 12(%esp), %eax
18 ; CHECK: movl 4(%esp), %ecx
19 ; CHECK: xrstors (%ecx)
20 call void @llvm.x86.xrstors(ptr %ptr, i32 %hi, i32 %lo)
23 declare void @llvm.x86.xrstors(ptr, i32, i32)