test/compiler/c2/7200264/Test7200264.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8059557_open Sdiff test/compiler/c2/7200264

test/compiler/c2/7200264/Test7200264.sh

Print this page


   1 #!/bin/sh
   2 # 
   3 # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 # 
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 # 
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 # 
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 # 
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 # 


  38 # Only test fastdebug Server VM on x86
  39 if [ $? != 0 ]
  40 then
  41     echo "Test Passed"
  42     exit 0
  43 fi
  44 
  45 # grep for support integer multiply vectors (cpu with SSE4.1)
  46 ${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -XX:+PrintMiscellaneous -XX:+Verbose -version | grep "cores per cpu" | grep "sse4.1"
  47 
  48 if [ $? != 0 ]
  49 then
  50     SSE=2
  51 else
  52     SSE=4
  53 fi
  54 
  55 cp ${TESTSRC}${FS}TestIntVect.java .
  56 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} -d . TestIntVect.java
  57 
  58 ${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -Xbatch -XX:-TieredCompilation -XX:CICompilerCount=1 -XX:+PrintCompilation -XX:+TraceNewVectors TestIntVect > test.out 2>&1

  59 
  60 COUNT=`grep AddVI test.out | wc -l | awk '{print $1}'`
  61 if [ $COUNT -lt 4 ]
  62 then
  63     echo "Test Failed: AddVI $COUNT < 4"
  64     exit 1
  65 fi
  66 
  67 # AddVI is generated for test_subc
  68 COUNT=`grep SubVI test.out | wc -l | awk '{print $1}'`
  69 if [ $COUNT -lt 4 ]
  70 then
  71     echo "Test Failed: SubVI $COUNT < 4"
  72     exit 1
  73 fi
  74 
  75 # MulVI is only supported with SSE4.1.
  76 if [ $SSE -gt 3 ]
  77 then
  78 # LShiftVI+SubVI is generated for test_mulc


   1 #!/bin/sh
   2 # 
   3 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 # 
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 # 
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 # 
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 # 
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 # 


  38 # Only test fastdebug Server VM on x86
  39 if [ $? != 0 ]
  40 then
  41     echo "Test Passed"
  42     exit 0
  43 fi
  44 
  45 # grep for support integer multiply vectors (cpu with SSE4.1)
  46 ${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -XX:+PrintMiscellaneous -XX:+Verbose -version | grep "cores per cpu" | grep "sse4.1"
  47 
  48 if [ $? != 0 ]
  49 then
  50     SSE=2
  51 else
  52     SSE=4
  53 fi
  54 
  55 cp ${TESTSRC}${FS}TestIntVect.java .
  56 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} -d . TestIntVect.java
  57 
  58 # CICompilerCount must be at least 2 with -TieredCompilation
  59 ${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -Xbatch -XX:-TieredCompilation -XX:CICompilerCount=2 -XX:+PrintCompilation -XX:+TraceNewVectors TestIntVect > test.out 2>&1
  60 
  61 COUNT=`grep AddVI test.out | wc -l | awk '{print $1}'`
  62 if [ $COUNT -lt 4 ]
  63 then
  64     echo "Test Failed: AddVI $COUNT < 4"
  65     exit 1
  66 fi
  67 
  68 # AddVI is generated for test_subc
  69 COUNT=`grep SubVI test.out | wc -l | awk '{print $1}'`
  70 if [ $COUNT -lt 4 ]
  71 then
  72     echo "Test Failed: SubVI $COUNT < 4"
  73     exit 1
  74 fi
  75 
  76 # MulVI is only supported with SSE4.1.
  77 if [ $SSE -gt 3 ]
  78 then
  79 # LShiftVI+SubVI is generated for test_mulc


test/compiler/c2/7200264/Test7200264.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File