Try the following code with -maltivec -fpreprocessed:
int foo(__attribute__((altivec(vector__))) float x, 
__attribute__((altivec(vector__))) float y) {

        if (__builtin_vec_vcmpeq_p (2, (x), (y))) return 3245;
        else return 12;
}

-- 
           Summary: [4.1 Regression] error with
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22085

Reply via email to