#!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -o nounset
set -o errexit

PREFIX=${PREFIX:-}
VERIFY=${VERIFY:-yes}
EMU_HACK=${EMU_HACK:-yes}




if [[ "${DASHDASH}" =~ "--" ]] ; then
  if [[ $1 =~ pnacl.*x8632 ]] ; then
    # TODO(robertm): remove -c option
    # c.f.: http://code.google.com/p/nativeclient/issues/detail?id=893
    DASHDASH="-c --"
  fi
fi

rm -f  *.out *.s

if [[ "${EMU_HACK}" != "no" ]] ; then
  touch cp-decl.s
fi

${PREFIX} $1 ${DASHDASH} data/train/input/cp-decl.i -o cp-decl.s \
  > stdout.out 2> stderr.out

if [[ "${VERIFY}" != "no" ]] ; then
  echo "VERIFY"
  cmp  cp-decl.s  data/train/output/cp-decl.s
fi
echo "OK"

#!/bin/bash
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -o nounset
set -o errexit

PREFIX=${PREFIX:-}
VERIFY=${VERIFY:-yes}
EMU_HACK=${EMU_HACK:-yes}


rm -f  *.out *.s

if [[ "${EMU_HACK}" != "no" ]] ; then
  touch cp-decl.s
fi

${PREFIX} $1 ${DASHDASH} data/train/input/cp-decl.i -o cp-decl.s \
  > stdout.out 2> stderr.out

if [[ "${VERIFY}" != "no" ]] ; then
  echo "VERIFY"
  cmp  cp-decl.s  data/train/output/cp-decl.s
fi
echo "OK"

Remove ignore-validator flag from gcc spec run script
Remove ignore-validator flag from gcc spec run script

This is no longer necessary; the underlying validator issue will probably not
be fixed (at least not with the current validator), but the LLVM optimization
which generates this particular shld instruction has been disabled for 16-bit
operands on x86-32 in http://codereview.chromium.org/8174010/

R= robertm@google.com,jvoung@google.com
BUG= http://code.google.com/p/nativeclient/issues/detail?id=893
TEST=this is a test

Review URL: http://codereview.chromium.org/8223007

git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@6887 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
