brintos

brintos / llvm-project-archived public Read only

0
0
Text · 743 B · 8f574b7 Raw
21 lines · c
1// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64-unknown-unknown \2// RUN: -target-feature +amx-tf32 -target-feature +amx-transpose  \3// RUN: -target-feature +amx-bf16 -target-feature +avx512f \4// RUN: -emit-llvm -o - -Werror -pedantic | FileCheck %s5 6#include <immintrin.h>7 8char buf[1024];9#define STRIDE 3210 11char buf2[1024];12 13void test_tile_mmultf32ps(__tile1024i a, __tile1024i b, __tile1024i c) {14  //CHECK-LABEL: @test_tile_mmultf32ps15  //CHECK-DAG: call x86_amx @llvm.x86.cast.vector.to.tile.v256i32(<256 x i32> {{%.*}})16  //CHECK-DAG: call x86_amx @llvm.x86.tmmultf32ps.internal17  //CHECK-DAG: call <256 x i32> @llvm.x86.cast.tile.to.vector.v256i32(x86_amx {{%.*}})18  __tile_mmultf32ps(&c, a, b);19}20 21