https://bugs.llvm.org/show_bug.cgi?id=38192

            Bug ID: 38192
           Summary: [PowerPC] Clang biases __builtin_xxpermdi differently
                    from GCC on LE
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedb...@nondot.org
          Reporter: nemanja.i....@gmail.com
                CC: llvm-bugs@lists.llvm.org

Calls to these builtins produce different results with the two compilers. Clang
needs to change to apply the same bias as GCC does.

vector short test0(vector short a, vector short b) {
  return vec_xxpermdi(a, b, 0);
}
vector short test1(vector short a, vector short b) {
  return vec_xxpermdi(a, b, 1);
}
vector short test2(vector short a, vector short b) {
  return vec_xxpermdi(a, b, 2);
}
vector short test3(vector short a, vector short b) {
  return vec_xxpermdi(a, b, 3);
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to