[AArch64,ELF] Restrict MOVZ/MOVK to non-PIC large code model (#70178)
[llvm-project.git] / llvm / test / CodeGen / X86 / ptwrite64-intrinsic.ll
blobd5e50214403256def59096695c5bcc1390b55a6e
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
8 ; CHECK-NEXT:    retq
9 entry:
10   call void @llvm.x86.ptwrite64(i64 %value)
11   ret void
14 define void @test_ptwrite64p(ptr %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, ptr %pointer, align 8
21   call void @llvm.x86.ptwrite64(i64 %value)
22   ret void
25 declare void @llvm.x86.ptwrite64(i64)