Commit daca85ca by Ziemowit Laski Committed by Ziemowit Laski

altivec-8.C: Use '-maltivec' instead of '-faltivec'; include <altivec.h> explicitly.

2004-05-11  Ziemowit Laski  <zlaski@apple.com>

        * g++.dg/ext/altivec-8.C: Use '-maltivec' instead of '-faltivec';
        include <altivec.h> explicitly.
        * gcc.dg/altivec-13.c: Likewise.

From-SVN: r81719
parent bed7b8f1
2004-05-11 Ziemowit Laski <zlaski@apple.com>
* g++.dg/ext/altivec-8.C: Use '-maltivec' instead of '-faltivec';
include <altivec.h> explicitly.
* gcc.dg/altivec-13.c: Likewise.
2004-05-11 Paul Brook <paul@codesourcery.com>
* gcc.c-torture/compile/20010518-1.c: Force enum size.
......
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-faltivec" } */
/* { dg-options "-maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
void foo() {
#include <altivec.h>
void foo (void)
{
vector bool int boolVec1 = (vector bool int) vec_splat_u32(3);
vector bool short boolVec2 = (vector bool short) vec_splat_u16(3);
vector bool char boolVec3 = (vector bool char) vec_splat_u8(3);
boolVec1 = vec_sld( boolVec1, boolVec1, 4 );
boolVec2 = vec_sld( boolVec2, boolVec2, 2 );
boolVec3 = vec_sld( boolVec3, boolVec3, 1 );
......
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-faltivec" } */
/* { dg-options "-maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
void foo() {
#include <altivec.h>
void foo (void)
{
vector bool int boolVec1 = (vector bool int) vec_splat_u32(3);
vector bool short boolVec2 = (vector bool short) vec_splat_u16(3);
vector bool char boolVec3 = (vector bool char) vec_splat_u8(3);
boolVec1 = vec_sld( boolVec1, boolVec1, 4 );
boolVec2 = vec_sld( boolVec2, boolVec2, 2 );
boolVec3 = vec_sld( boolVec3, boolVec3, 1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment