aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@gcc.gnu.org>2011-10-27 22:55:10 -0700
committerDavid S. Miller <davem@gcc.gnu.org>2011-10-27 22:55:10 -0700
commit2df19a351fc63643a15629cd3368d16ab20844b4 (patch)
treedcbf24ef321ce301c3c9cb2cc89a06d3d9670b7f
parent1864ee35eb555ae6f0e956f8fad59958870350ea (diff)
downloadgcc-2df19a351fc63643a15629cd3368d16ab20844b4.zip
gcc-2df19a351fc63643a15629cd3368d16ab20844b4.tar.gz
gcc-2df19a351fc63643a15629cd3368d16ab20844b4.tar.bz2
Missing testsuite file add in previous commit.
From-SVN: r180603
-rw-r--r--gcc/testsuite/gcc.target/sparc/setcc-3.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/sparc/setcc-3.c b/gcc/testsuite/gcc.target/sparc/setcc-3.c
new file mode 100644
index 0000000..8a26b67
--- /dev/null
+++ b/gcc/testsuite/gcc.target/sparc/setcc-3.c
@@ -0,0 +1,24 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-O1 -mvis3" } */
+
+int neq (long a, long b)
+{
+ return a != b;
+}
+
+int lt (unsigned long a, unsigned long b)
+{
+ return a < b;
+}
+
+int gt (unsigned long a, unsigned long b)
+{
+ return a > b;
+}
+
+/* { dg-final { scan-assembler "xor\t%" } } */
+/* { dg-final { scan-assembler "subcc\t%" } } */
+/* { dg-final { scan-assembler-times "addxc\t%" 3 } } */
+/* { dg-final { scan-assembler-times "cmp\t%" 2 } } */
+/* { dg-final { scan-assembler-not "sra\t%" } } */