1; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+xsave | FileCheck %s 2; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+xsave | FileCheck %s --check-prefix=CHECK64 3 4define void @test_xsetbv(i32 %in, i32 %high, i32 %low) { 5; CHECK-LABEL: test_xsetbv 6; CHECK: movl 4(%esp), %ecx 7; CHECK: movl 8(%esp), %edx 8; CHECK: movl 12(%esp), %eax 9; CHECK: xsetbv 10; CHECK: ret 11 12; CHECK64-LABEL: test_xsetbv 13; CHECK64: movl %edx, %eax 14; CHECK64-DAG: movl %edi, %ecx 15; CHECK64-DAG: movl %esi, %edx 16; CHECK64: xsetbv 17; CHECK64: ret 18 19 call void @llvm.x86.xsetbv(i32 %in, i32 %high, i32 %low) 20 ret void; 21} 22declare void @llvm.x86.xsetbv(i32, i32, i32) 23 24