[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git] / test / CodeGen / X86 / ptwrite64-intrinsic.ll
blob86533934130a9feb528a39ee59064780abfb9579
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(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
25 declare void @llvm.x86.ptwrite64(i64)