Skip to content

Commit

Permalink
[PowerPC][NFC] Undefine __XL_COMPAT_ALTIVEC__ in builtin lit test
Browse files Browse the repository at this point in the history
Add defines and undefines of the __XL_COMPAT_ALTIVEC__ to ensure
consistent results regardless of the default for this macro.
  • Loading branch information
lei137 committed Jun 17, 2022
1 parent bb83f8e commit febe4f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions clang/test/CodeGen/PowerPC/builtins-ppc-vsx.c
@@ -1,6 +1,10 @@
// REQUIRES: powerpc-registered-target
// RUN: %clang_cc1 -flax-vector-conversions=none -no-opaque-pointers -target-feature +altivec -target-feature +vsx -triple powerpc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -flax-vector-conversions=none -no-opaque-pointers -target-feature +altivec -target-feature +vsx -triple powerpc64le-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-LE
// RUN: %clang_cc1 -flax-vector-conversions=none -no-opaque-pointers -target-feature \
// RUN: +altivec -target-feature +vsx -triple powerpc64-unknown-unknown -emit-llvm \
// RUN: -U__XL_COMPAT_ALTIVEC__ %s -o - | FileCheck %s
// RUN: %clang_cc1 -flax-vector-conversions=none -no-opaque-pointers -target-feature \
// RUN: +altivec -target-feature +vsx -triple powerpc64le-unknown-unknown \
// RUN: -emit-llvm -U__XL_COMPAT_ALTIVEC__ %s -o - | FileCheck %s -check-prefix=CHECK-LE
#include <altivec.h>

vector bool char vbc = { 0, 1, 0, 1, 0, 1, 0, 1,
Expand Down

0 comments on commit febe4f6

Please sign in to comment.