brintos

brintos / llvm-project-archived public Read only

0
0
Text · 864 B · ba8b770 Raw
27 lines · c
1// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \2// RUN:   -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s3// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \4// RUN:   -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s5// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \6// RUN:   -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s7// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-aix \8// RUN:   -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s9 10extern void *vpa;11 12void test_dcbtstt(void) {13  // CHECK-LABEL: @test_dcbtstt14  // CHECK: %0 = load ptr, ptr @vpa15  // CHECK: tail call void @llvm.ppc.dcbtstt(ptr %0)16  // CHECK: ret void17  __dcbtstt(vpa);18}19 20void test_dcbtt(void) {21  // CHECK-LABEL: @test_dcbt22  // CHECK: %0 = load ptr, ptr @vpa23  // CHECK: tail call void @llvm.ppc.dcbtt(ptr %0)24  // CHECK: ret void25  __dcbtt(vpa);26}27