24 lines · plain
1; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=CHECK643 4define void @test_xsetbv(i32 %in, i32 %high, i32 %low) {5; CHECK-LABEL: test_xsetbv6; CHECK: movl 4(%esp), %ecx7; CHECK: movl 8(%esp), %edx8; CHECK: movl 12(%esp), %eax9; CHECK: xsetbv10; CHECK: ret11 12; CHECK64-LABEL: test_xsetbv13; CHECK64: movl %edx, %eax14; CHECK64-DAG: movl %edi, %ecx15; CHECK64-DAG: movl %esi, %edx16; CHECK64: xsetbv17; CHECK64: ret18 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