blob: 5b129095ba1f232636cc7e546c51807610ab2cae [file] [log] [blame]
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
// 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 i8*, i8** @vpa
// CHECK: tail call void @llvm.ppc.dcbtstt(i8* %0)
// CHECK: ret void
__dcbtstt(vpa);
}
void test_dcbtt(void) {
// CHECK-LABEL: @test_dcbt
// CHECK: %0 = load i8*, i8** @vpa
// CHECK: tail call void @llvm.ppc.dcbtt(i8* %0)
// CHECK: ret void
__dcbtt(vpa);
}