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
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
);