1 ; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+xsave | FileCheck %s
3 define 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
9 call void @llvm.x86.xsave(i8* %ptr, i32 %hi, i32 %lo)
12 declare void @llvm.x86.xsave(i8*, i32, i32)
14 define 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)
23 declare void @llvm.x86.xrstor(i8*, i32, i32)