1 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+xsaveopt | FileCheck %s 2 3 define void @test_xsaveopt(i8* %ptr, i32 %hi, i32 %lo) { 4 ; CHECK-LABEL: test_xsaveopt 5 ; CHECK: movl %edx, %eax 6 ; CHECK: movl %esi, %edx 7 ; CHECK: xsaveopt (%rdi) 8 call void @llvm.x86.xsaveopt(i8* %ptr, i32 %hi, i32 %lo) 9 ret void; 10 } 11 declare void @llvm.x86.xsaveopt(i8*, i32, i32) 12 13 define void @test_xsaveopt64(i8* %ptr, i32 %hi, i32 %lo) { 14 ; CHECK-LABEL: test_xsaveopt64 15 ; CHECK: movl %edx, %eax 16 ; CHECK: movl %esi, %edx 17 ; CHECK: xsaveopt64 (%rdi) 18 call void @llvm.x86.xsaveopt64(i8* %ptr, i32 %hi, i32 %lo) 19 ret void; 20 } 21 declare void @llvm.x86.xsaveopt64(i8*, i32, i32) 22