1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+amx-tile -verify-machineinstrs | FileCheck %s
3 ; RUN: llc < %s -O0 -mtriple=x86_64-unknown-unknown -mattr=+amx-tile -verify-machineinstrs | FileCheck %s
5 define void @test_amx(ptr %pointer, ptr %base, i64 %stride) {
6 ; CHECK-LABEL: test_amx:
8 ; CHECK-NEXT: ldtilecfg (%rdi)
9 ; CHECK-NEXT: sttilecfg (%rdi)
10 ; CHECK-NEXT: tilerelease
11 ; CHECK-NEXT: tilezero %tmm3
12 ; CHECK-NEXT: tileloadd (%rsi,%rdx), %tmm3
13 ; CHECK-NEXT: tileloaddt1 (%rsi,%rdx), %tmm3
14 ; CHECK-NEXT: tilestored %tmm3, (%rsi,%rdx)
16 call void @llvm.x86.ldtilecfg(ptr %pointer)
18 call void @llvm.x86.sttilecfg(ptr %pointer)
20 call void @llvm.x86.tilerelease()
22 call void @llvm.x86.tilezero(i8 3)
24 call void @llvm.x86.tileloadd64(i8 3, ptr %base, i64 %stride)
26 call void @llvm.x86.tileloaddt164(i8 3, ptr %base, i64 %stride)
28 call void @llvm.x86.tilestored64(i8 3, ptr %base, i64 %stride)
32 declare void @llvm.x86.tileloadd64(i8 %tile, ptr %base, i64 %stride)
33 declare void @llvm.x86.tileloaddt164(i8 %tile, ptr %base, i64 %stride)
34 declare void @llvm.x86.tilestored64(i8 %tile, ptr %base, i64 %stride)
35 declare void @llvm.x86.ldtilecfg(ptr %pointer)
36 declare void @llvm.x86.sttilecfg(ptr %pointer)
37 declare void @llvm.x86.tilerelease()
38 declare void @llvm.x86.tilezero(i8 %tile)