mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 22:42:46 +02:00
7b91f508e9
Add intrinsics for the XSAVE instructions (XSAVE/XSAVE64/XRSTOR/XRSTOR64) XSAVEOPT instructions (XSAVEOPT/XSAVEOPT64) XSAVEC instructions (XSAVEC/XSAVEC64) XSAVES instructions (XSAVES/XSAVES64/XRSTORS/XRSTORS64) Differential Revision: http://reviews.llvm.org/D13012 llvm-svn: 250029
13 lines
408 B
LLVM
13 lines
408 B
LLVM
; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+xsave,+xsavec | FileCheck %s
|
|
|
|
define void @test_xsavec(i8* %ptr, i32 %hi, i32 %lo) {
|
|
; CHECK-LABEL: test_xsavec
|
|
; CHECK: movl 8(%esp), %edx
|
|
; CHECK: movl 12(%esp), %eax
|
|
; CHECK: movl 4(%esp), %ecx
|
|
; CHECK: xsavec (%ecx)
|
|
call void @llvm.x86.xsavec(i8* %ptr, i32 %hi, i32 %lo)
|
|
ret void;
|
|
}
|
|
declare void @llvm.x86.xsavec(i8*, i32, i32)
|