22 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; NOTE: clwb is available in Skylake Server, not available in the newer3; NOTE: Cannon Lake arch, but available again in the newer Ice Lake arch.4; RUN: llc < %s -mtriple=i686-apple-darwin -mattr=clwb | FileCheck %s5; RUN: llc < %s -mtriple=i686-apple-darwin -mcpu=skx | FileCheck %s6; RUN: not --crash llc < %s -mtriple=i686-apple-darwin -mcpu=cannonlake 2>&1 | FileCheck %s --check-prefix=CNL7; RUN: llc < %s -mtriple=i686-apple-darwin -mcpu=icelake-server | FileCheck %s8; RUN: llc < %s -mtriple=i686-apple-darwin -mcpu=tigerlake | FileCheck %s9 10; CNL: LLVM ERROR: Cannot select: intrinsic %llvm.x86.clwb11 12define void @clwb(ptr %p) nounwind {13; CHECK-LABEL: clwb:14; CHECK: ## %bb.0:15; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax16; CHECK-NEXT: clwb (%eax)17; CHECK-NEXT: retl18 tail call void @llvm.x86.clwb(ptr %p)19 ret void20}21declare void @llvm.x86.clwb(ptr) nounwind22