diff options
Diffstat (limited to 'test/CodeGen/invpcid.c')
| -rw-r--r-- | test/CodeGen/invpcid.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/invpcid.c b/test/CodeGen/invpcid.c new file mode 100644 index 000000000000..f472cd995371 --- /dev/null +++ b/test/CodeGen/invpcid.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +invpcid -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s +// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +invpcid -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s + +#include <immintrin.h> + +#include <stdint.h> + +void test_invpcid(uint32_t type, void *descriptor) { + //CHECK-LABEL: @test_invpcid + //CHECK: call void @llvm.x86.invpcid(i32 %{{.*}}, i8* %{{.*}}) + _invpcid(type, descriptor); +} |
