Home | History | Annotate | Download | only in X86
      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
      3 
      4 define void @test_ptwrite64(i64 %value) {
      5 ; CHECK-LABEL: test_ptwrite64:
      6 ; CHECK:       # %bb.0: # %entry
      7 ; CHECK-NEXT:    ptwriteq %rdi
      8 ; CHECK-NEXT:    retq
      9 entry:
     10   call void @llvm.x86.ptwrite64(i64 %value)
     11   ret void
     12 }
     13 
     14 define void @test_ptwrite64p(i64* %pointer) {
     15 ; CHECK-LABEL: test_ptwrite64p:
     16 ; CHECK:       # %bb.0: # %entry
     17 ; CHECK-NEXT:    ptwriteq (%rdi)
     18 ; CHECK-NEXT:    retq
     19 entry:
     20   %value = load i64, i64* %pointer, align 8
     21   call void @llvm.x86.ptwrite64(i64 %value)
     22   ret void
     23 }
     24 
     25 declare void @llvm.x86.ptwrite64(i64)
     26