brintos

brintos / llvm-project-archived public Read only

0
0
Text · 739 B · a34ed74 Raw
23 lines · c
1// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +ptwrite -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s --check-prefix=X86 --check-prefix=X86_642// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +ptwrite -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s --check-prefix=X863 4#include <immintrin.h>5 6#include <stdint.h>7 8void test_ptwrite32(uint32_t value) {9  //X86-LABEL: @test_ptwrite3210  //X86: call void @llvm.x86.ptwrite32(i32 %{{.*}})11  _ptwrite32(value);12}13 14#ifdef __x86_64__15 16void test_ptwrite64(uint64_t value) {17  //X86_64-LABEL: @test_ptwrite6418  //X86_64: call void @llvm.x86.ptwrite64(i64 %{{.*}})19  _ptwrite64(value);20}21 22#endif /* __x86_64__ */23