R600/SI: Change all instruction assembly names to lowercase.
authorTom Stellard <thomas.stellard@amd.com>
Wed, 5 Nov 2014 14:50:53 +0000 (14:50 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 5 Nov 2014 14:50:53 +0000 (14:50 +0000)
commit8eaed0f63d99a3d6a75dcbb1edaa103d53501830
treee4e2f57ab02110aaf56e1451a488d879b0a11509
parent1f0606099490d429603c1368ac2927146d6a28d0
R600/SI: Change all instruction assembly names to lowercase.

This matches the format produced by the AMD proprietary driver.

//==================================================================//
// Shell script for converting .ll test cases: (Pass the .ll files
   you want to convert to this script as arguments).
//==================================================================//

; This was necessary on my system so that A-Z in sed would match only
; upper case.  I'm not sure why.
export LC_ALL='C'

TEST_FILES="$*"

MATCHES=`grep -v Patterns SIInstructions.td | grep -o '"[A-Z0-9_]\+["e]' | grep -o '[A-Z0-9_]\+' | sort -r`

for f in $TEST_FILES; do
  # Check that there are SI tests:
  grep -q -e 'verde' -e 'bonaire' -e 'SI' -e 'tahiti' $f
  if [ $? -eq 0 ]; then
    for match in $MATCHES; do
      sed -i -e "s/\([ :]$match\)/\L\1/" $f
    done

    # Try to get check lines with partial instruction names
    sed -i 's/\(;[ ]*SI[A-Z\\-]*: \)\([A-Z_0-9]\+\)/\1\L\2/' $f
  fi
done

sed -i -e 's/bb0_1/BB0_1/g' ../../../test/CodeGen/R600/infinite-loop.ll
sed -i -e 's/SI-NOT: bfe/SI-NOT: {{[^@]}}bfe/g'../../../test/CodeGen/R600/llvm.AMDGPU.bfe.*32.ll ../../../test/CodeGen/R600/sext-in-reg.ll
sed -i -e 's/exp_IEEE/EXP_IEEE/g' ../../../test/CodeGen/R600/llvm.exp2.ll
sed -i -e 's/numVgprs/NumVgprs/g' ../../../test/CodeGen/R600/register-count-comments.ll
sed -i 's/\(; CHECK[-NOT]*: \)\([A-Z_0-9]\+\)/\1\L\2/' ../../../test/CodeGen/R600/select64.ll ../../../test/CodeGen/R600/sgpr-copy.ll

//==================================================================//
// Shell script for converting .td files (run this last)
//==================================================================//

export LC_ALL='C'
sed -i -e '/Patterns/!s/\("[A-Z0-9_]\+[ "e]\)/\L\1/g' SIInstructions.td
sed -i -e 's/"EXP/"exp/g' SIInstrInfo.td

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221350 91177308-0d34-0410-b5e6-96231b3b80d8
238 files changed:
lib/Target/R600/SIInstrInfo.td
lib/Target/R600/SIInstructions.td
test/CodeGen/R600/128bit-kernel-args.ll
test/CodeGen/R600/32-bit-local-address-space.ll
test/CodeGen/R600/64bit-kernel-args.ll
test/CodeGen/R600/add.ll
test/CodeGen/R600/add_i64.ll
test/CodeGen/R600/address-space.ll
test/CodeGen/R600/and.ll
test/CodeGen/R600/anyext.ll
test/CodeGen/R600/array-ptr-calc-i32.ll
test/CodeGen/R600/array-ptr-calc-i64.ll
test/CodeGen/R600/atomic_cmp_swap_local.ll
test/CodeGen/R600/atomic_load_add.ll
test/CodeGen/R600/atomic_load_sub.ll
test/CodeGen/R600/bfi_int.ll
test/CodeGen/R600/bitcast.ll
test/CodeGen/R600/bswap.ll
test/CodeGen/R600/build_vector.ll
test/CodeGen/R600/codegen-prepare-addrmode-sext.ll
test/CodeGen/R600/commute_modifiers.ll
test/CodeGen/R600/concat_vectors.ll
test/CodeGen/R600/copy-illegal-type.ll
test/CodeGen/R600/ctlz_zero_undef.ll
test/CodeGen/R600/ctpop.ll
test/CodeGen/R600/ctpop64.ll
test/CodeGen/R600/cttz_zero_undef.ll
test/CodeGen/R600/cvt_f32_ubyte.ll
test/CodeGen/R600/ds-negative-offset-addressing-mode-loop.ll
test/CodeGen/R600/ds_read2.ll
test/CodeGen/R600/ds_read2st64.ll
test/CodeGen/R600/ds_write2.ll
test/CodeGen/R600/ds_write2st64.ll
test/CodeGen/R600/extload.ll
test/CodeGen/R600/extract_vector_elt_i16.ll
test/CodeGen/R600/fabs.f64.ll
test/CodeGen/R600/fabs.ll
test/CodeGen/R600/fadd.ll
test/CodeGen/R600/fadd64.ll
test/CodeGen/R600/fceil.ll
test/CodeGen/R600/fceil64.ll
test/CodeGen/R600/fcmp64.ll
test/CodeGen/R600/fconst64.ll
test/CodeGen/R600/fcopysign.f32.ll
test/CodeGen/R600/fcopysign.f64.ll
test/CodeGen/R600/fdiv.ll
test/CodeGen/R600/fdiv64.ll
test/CodeGen/R600/ffloor.ll
test/CodeGen/R600/flat-address-space.ll
test/CodeGen/R600/fma.f64.ll
test/CodeGen/R600/fma.ll
test/CodeGen/R600/fmaxnum.f64.ll
test/CodeGen/R600/fmaxnum.ll
test/CodeGen/R600/fminnum.f64.ll
test/CodeGen/R600/fminnum.ll
test/CodeGen/R600/fmul.ll
test/CodeGen/R600/fmul64.ll
test/CodeGen/R600/fmuladd.ll
test/CodeGen/R600/fneg-fabs.f64.ll
test/CodeGen/R600/fneg-fabs.ll
test/CodeGen/R600/fneg.f64.ll
test/CodeGen/R600/fneg.ll
test/CodeGen/R600/fp16_to_fp.ll
test/CodeGen/R600/fp32_to_fp16.ll
test/CodeGen/R600/fp_to_sint.f64.ll
test/CodeGen/R600/fp_to_sint.ll
test/CodeGen/R600/fp_to_uint.f64.ll
test/CodeGen/R600/fp_to_uint.ll
test/CodeGen/R600/fpext.ll
test/CodeGen/R600/fptrunc.ll
test/CodeGen/R600/frem.ll
test/CodeGen/R600/fsqrt.ll
test/CodeGen/R600/fsub.ll
test/CodeGen/R600/fsub64.ll
test/CodeGen/R600/ftrunc.f64.ll
test/CodeGen/R600/ftrunc.ll
test/CodeGen/R600/gep-address-space.ll
test/CodeGen/R600/global_atomics.ll
test/CodeGen/R600/gv-const-addrspace-fail.ll
test/CodeGen/R600/gv-const-addrspace.ll
test/CodeGen/R600/half.ll
test/CodeGen/R600/icmp64.ll
test/CodeGen/R600/imm.ll
test/CodeGen/R600/indirect-addressing-si.ll
test/CodeGen/R600/indirect-private-64.ll
test/CodeGen/R600/infinite-loop.ll
test/CodeGen/R600/insert_vector_elt.ll
test/CodeGen/R600/kernel-args.ll
test/CodeGen/R600/large-constant-initializer.ll
test/CodeGen/R600/llvm.AMDGPU.abs.ll
test/CodeGen/R600/llvm.AMDGPU.barrier.global.ll
test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll
test/CodeGen/R600/llvm.AMDGPU.bfe.i32.ll
test/CodeGen/R600/llvm.AMDGPU.bfe.u32.ll
test/CodeGen/R600/llvm.AMDGPU.bfi.ll
test/CodeGen/R600/llvm.AMDGPU.bfm.ll
test/CodeGen/R600/llvm.AMDGPU.brev.ll
test/CodeGen/R600/llvm.AMDGPU.clamp.ll
test/CodeGen/R600/llvm.AMDGPU.cvt_f32_ubyte.ll
test/CodeGen/R600/llvm.AMDGPU.div_fixup.ll
test/CodeGen/R600/llvm.AMDGPU.div_fmas.ll
test/CodeGen/R600/llvm.AMDGPU.div_scale.ll
test/CodeGen/R600/llvm.AMDGPU.fract.ll
test/CodeGen/R600/llvm.AMDGPU.imad24.ll
test/CodeGen/R600/llvm.AMDGPU.imax.ll
test/CodeGen/R600/llvm.AMDGPU.imin.ll
test/CodeGen/R600/llvm.AMDGPU.imul24.ll
test/CodeGen/R600/llvm.AMDGPU.kill.ll
test/CodeGen/R600/llvm.AMDGPU.ldexp.ll
test/CodeGen/R600/llvm.AMDGPU.legacy.rsq.ll
test/CodeGen/R600/llvm.AMDGPU.rcp.f64.ll
test/CodeGen/R600/llvm.AMDGPU.rcp.ll
test/CodeGen/R600/llvm.AMDGPU.rsq.clamped.f64.ll
test/CodeGen/R600/llvm.AMDGPU.rsq.clamped.ll
test/CodeGen/R600/llvm.AMDGPU.rsq.ll
test/CodeGen/R600/llvm.AMDGPU.trig_preop.ll
test/CodeGen/R600/llvm.AMDGPU.trunc.ll
test/CodeGen/R600/llvm.AMDGPU.umad24.ll
test/CodeGen/R600/llvm.AMDGPU.umax.ll
test/CodeGen/R600/llvm.AMDGPU.umin.ll
test/CodeGen/R600/llvm.AMDGPU.umul24.ll
test/CodeGen/R600/llvm.SI.fs.interp.constant.ll
test/CodeGen/R600/llvm.SI.gather4.ll
test/CodeGen/R600/llvm.SI.getlod.ll
test/CodeGen/R600/llvm.SI.image.ll
test/CodeGen/R600/llvm.SI.image.sample.ll
test/CodeGen/R600/llvm.SI.image.sample.o.ll
test/CodeGen/R600/llvm.SI.imageload.ll
test/CodeGen/R600/llvm.SI.load.dword.ll
test/CodeGen/R600/llvm.SI.resinfo.ll
test/CodeGen/R600/llvm.SI.sample-masked.ll
test/CodeGen/R600/llvm.SI.sample.ll
test/CodeGen/R600/llvm.SI.sampled.ll
test/CodeGen/R600/llvm.SI.sendmsg.ll
test/CodeGen/R600/llvm.SI.tbuffer.store.ll
test/CodeGen/R600/llvm.SI.tid.ll
test/CodeGen/R600/llvm.amdgpu.kilp.ll
test/CodeGen/R600/llvm.amdgpu.lrp.ll
test/CodeGen/R600/llvm.cos.ll
test/CodeGen/R600/llvm.exp2.ll
test/CodeGen/R600/llvm.floor.ll
test/CodeGen/R600/llvm.log2.ll
test/CodeGen/R600/llvm.memcpy.ll
test/CodeGen/R600/llvm.rint.f64.ll
test/CodeGen/R600/llvm.rint.ll
test/CodeGen/R600/llvm.sin.ll
test/CodeGen/R600/llvm.sqrt.ll
test/CodeGen/R600/load-i1.ll
test/CodeGen/R600/load.ll
test/CodeGen/R600/load.vec.ll
test/CodeGen/R600/load64.ll
test/CodeGen/R600/local-64.ll
test/CodeGen/R600/local-atomics.ll
test/CodeGen/R600/local-atomics64.ll
test/CodeGen/R600/local-memory-two-objects.ll
test/CodeGen/R600/local-memory.ll
test/CodeGen/R600/lshl.ll
test/CodeGen/R600/lshr.ll
test/CodeGen/R600/mad-sub.ll
test/CodeGen/R600/mad_int24.ll
test/CodeGen/R600/mad_uint24.ll
test/CodeGen/R600/missing-store.ll
test/CodeGen/R600/mubuf.ll
test/CodeGen/R600/mul.ll
test/CodeGen/R600/mul_int24.ll
test/CodeGen/R600/mul_uint24.ll
test/CodeGen/R600/mulhu.ll
test/CodeGen/R600/operand-spacing.ll
test/CodeGen/R600/or.ll
test/CodeGen/R600/private-memory.ll
test/CodeGen/R600/reorder-stores.ll
test/CodeGen/R600/rotl.i64.ll
test/CodeGen/R600/rotl.ll
test/CodeGen/R600/rotr.i64.ll
test/CodeGen/R600/rotr.ll
test/CodeGen/R600/rsq.ll
test/CodeGen/R600/saddo.ll
test/CodeGen/R600/salu-to-valu.ll
test/CodeGen/R600/scalar_to_vector.ll
test/CodeGen/R600/schedule-global-loads.ll
test/CodeGen/R600/schedule-kernel-arg-loads.ll
test/CodeGen/R600/sdiv.ll
test/CodeGen/R600/sdivrem24.ll
test/CodeGen/R600/select-i1.ll
test/CodeGen/R600/select-vectors.ll
test/CodeGen/R600/select64.ll
test/CodeGen/R600/selectcc-opt.ll
test/CodeGen/R600/selectcc.ll
test/CodeGen/R600/setcc-opt.ll
test/CodeGen/R600/setcc.ll
test/CodeGen/R600/setcc64.ll
test/CodeGen/R600/seto.ll
test/CodeGen/R600/setuo.ll
test/CodeGen/R600/sext-in-reg.ll
test/CodeGen/R600/sgpr-control-flow.ll
test/CodeGen/R600/sgpr-copy-duplicate-operand.ll
test/CodeGen/R600/sgpr-copy.ll
test/CodeGen/R600/shl.ll
test/CodeGen/R600/shl_add_constant.ll
test/CodeGen/R600/shl_add_ptr.ll
test/CodeGen/R600/si-lod-bias.ll
test/CodeGen/R600/si-sgpr-spill.ll
test/CodeGen/R600/si-vector-hang.ll
test/CodeGen/R600/sign_extend.ll
test/CodeGen/R600/simplify-demanded-bits-build-pair.ll
test/CodeGen/R600/sint_to_fp.f64.ll
test/CodeGen/R600/sint_to_fp.ll
test/CodeGen/R600/smrd.ll
test/CodeGen/R600/sra.ll
test/CodeGen/R600/srl.ll
test/CodeGen/R600/ssubo.ll
test/CodeGen/R600/store-v3i32.ll
test/CodeGen/R600/store-v3i64.ll
test/CodeGen/R600/store.ll
test/CodeGen/R600/sub.ll
test/CodeGen/R600/trunc-store-i1.ll
test/CodeGen/R600/trunc.ll
test/CodeGen/R600/uaddo.ll
test/CodeGen/R600/udiv.ll
test/CodeGen/R600/udivrem.ll
test/CodeGen/R600/udivrem24.ll
test/CodeGen/R600/udivrem64.ll
test/CodeGen/R600/uint_to_fp.f64.ll
test/CodeGen/R600/uint_to_fp.ll
test/CodeGen/R600/unaligned-load-store.ll
test/CodeGen/R600/unhandled-loop-condition-assertion.ll
test/CodeGen/R600/urecip.ll
test/CodeGen/R600/urem.ll
test/CodeGen/R600/use-sgpr-multiple-times.ll
test/CodeGen/R600/usubo.ll
test/CodeGen/R600/v_cndmask.ll
test/CodeGen/R600/valu-i1.ll
test/CodeGen/R600/vop-shrink.ll
test/CodeGen/R600/vselect.ll
test/CodeGen/R600/wait.ll
test/CodeGen/R600/work-item-intrinsics.ll
test/CodeGen/R600/xor.ll
test/CodeGen/R600/zero_extend.ll