[MLIR][TOSA] Update CustomOp input and output names (#118408)
[llvm-project.git] / clang / test / CodeGen / X86 / x86-enqcmd-builtins.c
blobd6a1492792644afdd0f90b85574c62dcba78c9f5
1 // RUN: %clang_cc1 %s -ffreestanding -triple i386-unknown-unknown -target-feature +enqcmd -emit-llvm -o - | FileCheck %s
2 // RUN: %clang_cc1 %s -ffreestanding -triple x86_64-unknown-unknown -target-feature +enqcmd -emit-llvm -o - | FileCheck %s
4 #include <immintrin.h>
6 int test_enqcmd(void *dst, const void *src) {
7 // CHECK-LABEL: @test_enqcmd
8 // CHECK: %[[TMP0:.+]] = call i8 @llvm.x86.enqcmd(ptr %{{.+}}, ptr %{{.+}})
9 // CHECK: %[[RET:.+]] = zext i8 %[[TMP0]] to i32
10 // CHECK: ret i32 %[[RET]]
11 return _enqcmd(dst, src);
14 int test_enqcmds(void *dst, const void *src) {
15 // CHECK-LABEL: @test_enqcmds
16 // CHECK: %[[TMP0:.+]] = call i8 @llvm.x86.enqcmds(ptr %{{.+}}, ptr %{{.+}})
17 // CHECK: %[[RET:.+]] = zext i8 %[[TMP0]] to i32
18 // CHECK: ret i32 %[[RET]]
19 return _enqcmds(dst, src);