• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+amx-int8 -verify-machineinstrs | FileCheck %s
3
4define void @test_amx() {
5; CHECK-LABEL: test_amx:
6; CHECK:       # %bb.0:
7  call void @llvm.x86.tdpbssd(i8 3, i8 4, i8 7)
8; CHECK-NEXT:    tdpbssd %tmm7, %tmm4, %tmm3
9
10  call void @llvm.x86.tdpbsud(i8 3, i8 4, i8 7)
11; CHECK-NEXT:    tdpbsud %tmm7, %tmm4, %tmm3
12
13  call void @llvm.x86.tdpbusd(i8 3, i8 0, i8 7)
14; CHECK-NEXT:    tdpbusd %tmm7, %tmm0, %tmm3
15
16  call void @llvm.x86.tdpbuud(i8 3, i8 4, i8 1)
17; CHECK-NEXT:    tdpbuud %tmm1, %tmm4, %tmm3
18  ret void
19}
20
21declare void @llvm.x86.tdpbssd(i8 %tile0, i8 %tile1, i8 %tile2)
22declare void @llvm.x86.tdpbsud(i8 %tile0, i8 %tile1, i8 %tile2)
23declare void @llvm.x86.tdpbusd(i8 %tile0, i8 %tile1, i8 %tile2)
24declare void @llvm.x86.tdpbuud(i8 %tile0, i8 %tile1, i8 %tile2)
25