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

            Bug ID: 44264
           Summary: m[ft]ppr instruction aliases not implemented
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 22924
  --> https://bugs.llvm.org/attachment.cgi?id=22924&action=edit
patch to implement aliases

The mfppr and mtppr instruction aliases are not implemented in LLVM, but they
are in GCC and xlC. m[ft]ppr32 and quite a number of other m[tf]spr aliases are
also not implemented in LLVM.

I stumbled across this when trying to use the `_mm_pause` function
`clang/lib/Headers/ppc_wrappers/xmmintrin.h`, which uses these instructions in
its implementation.

The attached patch adds the instructions. AFAICT, the PPR was introduced in
POWER6, so this patch checks for that, although it seems like a bit much just
to implement an instruction alias.

Another option would be to just change the implementation in `xmmintrin.h` to
use `mfspr Rx,896`. Thoughts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to