| 1 |
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +amx-tile -target-feature +amx-complex \ |
| 2 |
// RUN: -emit-llvm -o - -Wall -Werror -pedantic -Wno-gnu-statement-expression | FileCheck %s |
| 3 |
|
| 4 |
#include <immintrin.h> |
| 5 |
#include <stddef.h> |
| 6 |
void test_tile_cmmimfp16ps(void) { |
| 7 |
// CHECK-LABEL: @test_tile_cmmimfp16ps |
| 8 |
// CHECK: call void @llvm.x86.tcmmimfp16ps(i8 1, i8 2, i8 3) |
| 9 |
_tile_cmmimfp16ps(1, 2, 3); |
| 10 |
} |
| 11 |
|
| 12 |
void test_tile_cmmrlfp16ps(void) { |
| 13 |
// CHECK-LABEL: @test_tile_cmmrlfp16ps |
| 14 |
// CHECK: call void @llvm.x86.tcmmrlfp16ps(i8 1, i8 2, i8 3) |
| 15 |
_tile_cmmrlfp16ps(1, 2, 3); |
| 16 |
} |