+2016-06-21 Wilco Dijkstra <wdijkstr@arm.com>
+
+ * gcc.target/aarch64/advsimd-intrinsics/vrnd.c
+ (dg-require-effective-target): Use arm_v8_neon_hw.
+ * gcc.target/aarch64/advsimd-intrinsics/vrnda.c
+ (dg-require-effective-target): Likewise.
+ * gcc.target/aarch64/advsimd-intrinsics/vrndm.c
+ (dg-require-effective-target): Likewise.
+ * gcc.target/aarch64/advsimd-intrinsics/vrndn.c
+ (dg-require-effective-target): Likewise.
+ * gcc.target/aarch64/advsimd-intrinsics/vrndp.c
+ (dg-require-effective-target): Likewise.
+ * gcc.target/aarch64/advsimd-intrinsics/vrndx.c
+ (dg-require-effective-target): Likewise.
+ * lib/target-supports.exp (check_runtime arm_v8_neon_hw_available):
+ Add AArch64 check.
+
2016-06-21 Wilco Dijkstra <wdijkstr@arm.com>
* gcc.dg/tree-ssa/attr-hotcold-2.c (scan-tree-dump-times):
int
main (void)
{
- float32x2_t a;
+ float32x2_t a = { 1.0f, 2.0f };
+ #ifdef __ARM_ARCH_ISA_A64
+ asm ("frinta %0.2s, %1.2s"
+ : "=w" (a)
+ : "w" (a));
+ #else
asm ("vrinta.f32 %P0, %P1"
: "=w" (a)
: "0" (a));
- return 0;
+ #endif
+ return a[0] == 2.0f;
}
} [add_options_for_arm_v8_neon ""]]
}