__attribute__ ((aligned (64))) ULong src;
__attribute__ ((aligned (64))) Double result;
src = input;
- __asm__ __volatile__ ("xscvhpdp %x0,%x1" : "=wa" (result) : "wa" (src));
+ __asm__ __volatile__ (".machine push;\n" ".machine power9;\n" \
+ "xscvhpdp %x0,%x1 ;\n .machine pop" \
+ : "=wa" (result) : "wa" (src) );
return result;
# else
return 0.0;
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
]], [[
- __asm__ __volatile__("cnttzw 1,2 ");
+__asm__ __volatile__ (".machine power9;\n" \
+ "cnttzw 1,3; \n" );
]])], [
# guest_ppc_helpers.c needs the HAS_ISA_3_OO to enable copy, paste,
# cpabort support
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
]], [[
- __asm__ __volatile__("xscvhpdp 1,2 ");
+__asm__ __volatile__ (".machine power9;\n" \
+ "xscvhpdp 1,2;\n" );
]])], [
ac_asm_have_xscvhpdp=yes
AC_MSG_RESULT([yes])
AC_MSG_CHECKING([that assembler knows ISA 3.1 ])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
]], [[
- __asm__ __volatile__("brh 1,2 ");
+__asm__ __volatile__ (".machine power10;\n" \
+ "brh 1,2;\n ");
]])], [
ac_asm_have_isa_3_1=yes
AC_MSG_RESULT([yes])
register long int r8 __asm__ ("r8"); \
r0=name; \
__asm__ __volatile__ \
- ("scv 0\n\t" \
+ (".machine power9\n" \
+ "scv 0\n\t" \
"0:" \
: "=&r" (r0), \
"=&r" (r3), "=&r" (r4), "=&r" (r5), \