aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/vect-fcm.x
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2013-05-14 11:19:11 +0200
committerYvan Roux <yvan.roux@linaro.org>2013-05-14 11:19:11 +0200
commit5ea5e3a42fd60d479d9e1d432b85bdfe107e2fdb (patch)
treede3d75006de15e378d35038de2d1269d9f33401c /gcc/testsuite/gcc.target/aarch64/vect-fcm.x
parent2a8b4bf9b046554efca8267486a77b0bc27abbe0 (diff)
parent0c6015add23907b02c7e8e3c1fb5e4c5b78a92b1 (diff)
Merge from FSF arm/aarch64-4.7-branch r198254..r198689.
Diffstat (limited to 'gcc/testsuite/gcc.target/aarch64/vect-fcm.x')
-rw-r--r--gcc/testsuite/gcc.target/aarch64/vect-fcm.x14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-fcm.x b/gcc/testsuite/gcc.target/aarch64/vect-fcm.x
index 7e51bef0ce2..803861b0293 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect-fcm.x
+++ b/gcc/testsuite/gcc.target/aarch64/vect-fcm.x
@@ -40,6 +40,15 @@ foobar (FTYPE *in1, FTYPE *in2, FTYPE *output)
output[i] = (in1[i] OP 0.0) ? 4.0 : 2.0;
}
+void
+foobarbar (FTYPE *in1, FTYPE *in2, FTYPE *output)
+{
+ int i = 0;
+ /* Vectorizable. */
+ for (i = 0; i < N; i++)
+ output[i] = (in1[i] INV_OP 0.0) ? 4.0 : 2.0;
+}
+
int
main (int argc, char **argv)
{
@@ -51,6 +60,11 @@ main (int argc, char **argv)
for (i = 0; i < N; i++)
if (out1[i] != out2[i])
abort ();
+ foobar (input1, input2, out1);
+ foobarbar (input1, input2, out2);
+ for (i = 0; i < N; i++)
+ if (out1[i] == out2[i])
+ abort ();
return 0;
}