1 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=CHECK64
4 define 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
12 ; CHECK64-LABEL: test_xsetbv
13 ; CHECK64: movl %edx, %eax
14 ; CHECK64-DAG: movl %edi, %ecx
15 ; CHECK64-DAG: movl %esi, %edx
19 call void @llvm.x86.xsetbv(i32 %in, i32 %high, i32 %low)
22 declare void @llvm.x86.xsetbv(i32, i32, i32)