Download cmake/checks/cpu_vsx_asm.cpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_vsx_asm.cpp
- Command line
-
hf download hf://tgollogly/test/cmake/checks/cpu_vsx_asm.cpp
-
curl -L -o cpu_vsx_asm.cpp https://huggingface.co/tgollogly/test/resolve/main/cmake/checks/cpu_vsx_asm.cpp
557 Bytes
| /* | |
| * xlc and wide versions of clang don't support %x<n> in the inline asm template which fixes register number | |
| * when using any of the register constraints wa, wd, wf | |
| */ | |
| int main() | |
| { | |
| __vector float vf; | |
| __vector signed int vi; | |
| __asm__ __volatile__ ("xvcvsxwsp %x0,%x1" : "=wa" (vf) : "wa" (vi)); | |
| return 0; | |
| } |