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