brintos

brintos / llvm-project-archived public Read only

0
0
Text · 969 B · 8a6569f Raw
40 lines · c
1// REQUIRES: powerpc-registered-target2// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \3// RUN:   -emit-llvm %s -o - -target-cpu pwr7 | \4// RUN:  FileCheck %s5// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \6// RUN:   -emit-llvm %s -o - -target-cpu pwr8 | \7// RUN:  FileCheck %s8// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \9// RUN:   -emit-llvm %s -o - -target-cpu pwr7 | \10// RUN:  FileCheck %s11// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-aix \12// RUN:   -emit-llvm %s -o - -target-cpu pwr7 | \13// RUN:  FileCheck %s14 15extern int ia, ib;16 17// td18void test_tw(void) {19// CHECK: void @llvm.ppc.tw(i32 %0, i32 %1, i32 1)20 21  __builtin_ppc_tw(ia, ib, 1);22}23 24void test_xl_tw(void) {25// CHECK: void @llvm.ppc.tw(i32 %0, i32 %1, i32 1)26 27  __tw(ia, ib, 1);28}29 30// trap31void test_trap(void) {32// CHECK: void @llvm.ppc.trap(i32 %0)33  __builtin_ppc_trap(ia);34}35 36void test_xl_trap(void) {37// CHECK: void @llvm.ppc.trap(i32 %0)38  __trap(ia);39}40