[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / X86 / invpcid.c
blob382907fe149d14fa2e6deb07cae8b7cd6cc57b4e
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +invpcid -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s
2 // RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +invpcid -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s
4 #include <immintrin.h>
6 #include <stdint.h>
8 void test_invpcid(uint32_t type, void *descriptor) {
9 //CHECK-LABEL: @test_invpcid
10 //CHECK: call void @llvm.x86.invpcid(i32 %{{.*}}, ptr %{{.*}})
11 _invpcid(type, descriptor);