24 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 pwr8 | FileCheck %s7// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-aix \8// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s9 10extern const int *cia;11extern double da;12 13void test_stfiw(void) {14 // CHECK-LABEL: test_stfiw15 // CHECK: void @llvm.ppc.stfiw(ptr %0, double %1)16 __builtin_ppc_stfiw(cia, da);17}18 19void test_xl_stfiw(void) {20 // CHECK-LABEL: test_xl_stfiw21 // CHECK: void @llvm.ppc.stfiw(ptr %0, double %1)22 __stfiw(cia, da);23}24