llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-xlcompat-prefetch.c
Nikita Popov 39db5e1ed8 [CodeGen] Convert tests to opaque pointers (NFC)
Conversion performed using the script at:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only tests where no manual fixup was required.
2022-10-07 14:22:00 +02:00

27 lines
864 B
C

// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-aix \
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
extern void *vpa;
void test_dcbtstt(void) {
// CHECK-LABEL: @test_dcbtstt
// CHECK: %0 = load ptr, ptr @vpa
// CHECK: tail call void @llvm.ppc.dcbtstt(ptr %0)
// CHECK: ret void
__dcbtstt(vpa);
}
void test_dcbtt(void) {
// CHECK-LABEL: @test_dcbt
// CHECK: %0 = load ptr, ptr @vpa
// CHECK: tail call void @llvm.ppc.dcbtt(ptr %0)
// CHECK: ret void
__dcbtt(vpa);
}