28 lines · c
1// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +amx-fp8 \2// RUN: -emit-llvm -o - -Werror -pedantic | FileCheck %s3#include <immintrin.h>4 5void test_amx(void *data) {6 //CHECK-LABEL: @test_amx7 //CHECK: call void @llvm.x86.tdpbf8ps(i8 1, i8 2, i8 3)8 _tile_dpbf8ps(1, 2, 3);9}10 11void test_amx2(void *data) {12 //CHECK-LABEL: @test_amx213 //CHECK: call void @llvm.x86.tdpbhf8ps(i8 1, i8 2, i8 3)14 _tile_dpbhf8ps(1, 2, 3);15}16 17void test_amx3(void *data) {18 //CHECK-LABEL: @test_amx319 //CHECK: call void @llvm.x86.tdphbf8ps(i8 1, i8 2, i8 3)20 _tile_dphbf8ps(1, 2, 3);21}22 23void test_amx4(void *data) {24 //CHECK-LABEL: @test_amx425 //CHECK: call void @llvm.x86.tdphf8ps(i8 1, i8 2, i8 3)26 _tile_dphf8ps(1, 2, 3);27}28