llvm/llvm/test/CodeGen/X86/apx/no-rex2-pseudo-amx.ll

; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown -stop-after=x86-isel -mattr=+amx-tile,+egpr | FileCheck %s
; RUN: llc < %s -enable-new-pm -mtriple=x86_64-unknown -stop-after=x86-isel -mattr=+amx-tile,+egpr | FileCheck %s

define dso_local void @amx(ptr noundef %data) {
  ; CHECK-LABEL: name: amx
  ; CHECK: bb.0.entry:
  ; CHECK-NEXT:   liveins: $rdi
  ; CHECK-NEXT: {{  $}}
  ; CHECK-NEXT:   [[COPY:%[0-9]+]]:gr64_norex2 = COPY $rdi
  ; CHECK-NEXT:   [[MOV32ri64_:%[0-9]+]]:gr64_norex2_nosp = MOV32ri64 8
  ; CHECK-NEXT:   PTILELOADD 4, [[COPY]], 1, killed [[MOV32ri64_]], 0, $noreg
  ; CHECK-NEXT:   RET 0
  entry:
  call void @llvm.x86.tileloadd64(i8 4, ptr %data, i64 8)
  ret void
}

declare void @llvm.x86.tileloadd64(i8 immarg, ptr, i64)