1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+ptwrite | FileCheck %s
4 define void @test_ptwrite64(i64 %value) {
5 ; CHECK-LABEL: test_ptwrite64:
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: ptwriteq %rdi
10 call void @llvm.x86.ptwrite64(i64 %value)
14 define void @test_ptwrite64p(i64* %pointer) {
15 ; CHECK-LABEL: test_ptwrite64p:
16 ; CHECK: # %bb.0: # %entry
17 ; CHECK-NEXT: ptwriteq (%rdi)
20 %value = load i64, i64* %pointer, align 8
21 call void @llvm.x86.ptwrite64(i64 %value)
25 declare void @llvm.x86.ptwrite64(i64)