llvm-project/llvm/test/MC/AArch64/SVE
Sander de Smalen 3b4f706ae1 [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY
This patch fixes an issue in the implementation of DUP/CPY where certain
immediates were not accepted. Immediates should be interpreted as a two's
complement encoding of a value that fits the number of bits of the element
type.

          mov z0.b, p0/z, #127
     <=>  mov z0.b, p0/z, #-129
     <=>  mov z0.b, p0/z, #0xffffffffffffff7f

This behaviour is in line with the GNU assembler.

Reviewed By: c-rhodes

Differential Revision: https://reviews.llvm.org/D94776
2021-02-11 08:14:15 +00:00
..
abs-diagnostics.s
abs.s
add-diagnostics.s
add.s
addpl-diagnostics.s
addpl.s
addvl-diagnostics.s
addvl.s
adr-diagnostics.s
adr.s
and-diagnostics.s
and.s
ands-diagnostics.s
ands.s
andv-diagnostics.s
andv.s
asr-diagnostics.s
asr.s
asrd-diagnostics.s
asrd.s
asrr-diagnostics.s
asrr.s
bfcvt-diagnostics.s
bfcvt.s
bfcvtnt-diagnostics.s
bfcvtnt.s
bfdot-diagnostics.s
bfdot.s
bfmlal-diagnostics.s
bfmlal.s
bfmmla-diagnostics.s
bfmmla.s
bic-diagnostics.s
bic.s
bics-diagnostics.s
bics.s
brka-diagnostics.s
brka.s
brkas-diagnostics.s
brkas.s
brkb-diagnostics.s
brkb.s
brkbs-diagnostics.s
brkbs.s
brkn-diagnostics.s
brkn.s
brkns-diagnostics.s
brkns.s
brkpa-diagnostics.s
brkpa.s
brkpas-diagnostics.s
brkpas.s
brkpb-diagnostics.s
brkpb.s
brkpbs-diagnostics.s
brkpbs.s
clasta-diagnostics.s
clasta.s
clastb-diagnostics.s
clastb.s
cls-diagnostics.s
cls.s
clz-diagnostics.s
clz.s
cmpeq-diagnostics.s
cmpeq.s
cmpge-diagnostics.s
cmpge.s
cmpgt-diagnostics.s
cmpgt.s
cmphi-diagnostics.s
cmphi.s
cmphs-diagnostics.s
cmphs.s
cmple-diagnostics.s
cmple.s
cmplo-diagnostics.s
cmplo.s
cmpls-diagnostics.s
cmpls.s
cmplt-diagnostics.s
cmplt.s
cmpne-diagnostics.s
cmpne.s
cnot-diagnostics.s
cnot.s
cnt-diagnostics.s
cnt.s
cntb-diagnostics.s
cntb.s
cntd-diagnostics.s
cntd.s
cnth-diagnostics.s
cnth.s
cntp-diagnostics.s
cntp.s
cntw-diagnostics.s
cntw.s
compact-diagnostics.s
compact.s
condtion-codes.s
cpy-diagnostics.s [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY 2021-02-11 08:14:15 +00:00
cpy.s [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY 2021-02-11 08:14:15 +00:00
ctermeq-diagnostics.s
ctermeq.s
ctermne-diagnostics.s
ctermne.s
decb-diagnostics.s
decb.s
decd-diagnostics.s
decd.s
dech-diagnostics.s
dech.s
decp-diagnostics.s
decp.s
decw-diagnostics.s
decw.s
directive-arch.s
directive-arch_extension-negative.s
directive-arch_extension.s
dot-req-diagnostics.s [AArch64][MC] Remove unused CHECK-ERROR in SVE test file 2020-11-06 11:21:12 +00:00
dot-req.s
dup-diagnostics.s [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY 2021-02-11 08:14:15 +00:00
dup.s [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY 2021-02-11 08:14:15 +00:00
dupm-diagnostics.s
dupm.s
eon-diagnostics.s
eon.s
eor-diagnostics.s
eor.s
eors-diagnostics.s
eors.s
eorv-diagnostics.s
eorv.s
ext-diagnostics.s
ext.s
fabd-diagnostics.s
fabd.s
fabs-diagnostics.s
fabs.s
facge-diagnostics.s
facge.s
facgt-diagnostics.s
facgt.s
facle-diagnostics.s
facle.s
faclt-diagnostics.s
faclt.s
fadd-diagnostics.s
fadd.s
fadda-diagnostics.s
fadda.s
faddv-diagnostics.s
faddv.s
fcadd-diagnostics.s
fcadd.s
fcmeq-diagnostics.s
fcmeq.s
fcmge-diagnostics.s
fcmge.s
fcmgt-diagnostics.s
fcmgt.s
fcmla-diagnostics.s
fcmla.s
fcmle-diagnostics.s
fcmle.s
fcmlt-diagnostics.s
fcmlt.s
fcmne-diagnostics.s
fcmne.s
fcmuo-diagnostics.s
fcmuo.s
fcpy-diagnostics.s
fcpy.s
fcvt-diagnostics.s
fcvt.s
fcvtzs-diagnostics.s
fcvtzs.s
fcvtzu-diagnostics.s
fcvtzu.s
fdiv-diagnostics.s
fdiv.s
fdivr-diagnostics.s
fdivr.s
fdup-diagnostics.s
fdup.s
fexpa-diagnostics.s
fexpa.s
fmad-diagnostics.s
fmad.s
fmax-diagnostics.s
fmax.s
fmaxnm-diagnostics.s
fmaxnm.s
fmaxnmv-diagnostics.s
fmaxnmv.s
fmaxv-diagnostics.s
fmaxv.s
fmin-diagnostics.s
fmin.s
fminnm-diagnostics.s
fminnm.s
fminnmv-diagnostics.s
fminnmv.s
fminv-diagnostics.s
fminv.s
fmla-diagnostics.s
fmla.s
fmls-diagnostics.s
fmls.s
fmov-diagnostics.s
fmov.s
fmsb-diagnostics.s
fmsb.s
fmul-diagnostics.s
fmul.s
fmulx-diagnostics.s
fmulx.s
fneg-diagnostics.s
fneg.s
fnmad-diagnostics.s
fnmad.s
fnmla-diagnostics.s
fnmla.s
fnmls-diagnostics.s
fnmls.s
fnmsb-diagnostics.s
fnmsb.s
frecpe-diagnostics.s
frecpe.s
frecps-diagnostics.s
frecps.s
frecpx-diagnostics.s
frecpx.s
frinta-diagnostics.s
frinta.s
frinti-diagnostics.s
frinti.s
frintm-diagnostics.s
frintm.s
frintn-diagnostics.s
frintn.s
frintp-diagnostics.s
frintp.s
frintx-diagnostics.s
frintx.s
frintz-diagnostics.s
frintz.s
frsqrte-diagnostics.s
frsqrte.s
frsqrts-diagnostics.s
frsqrts.s
fscale-diagnostics.s
fscale.s
fsqrt-diagnostics.s
fsqrt.s
fsub-diagnostics.s
fsub.s
fsubr-diagnostics.s
fsubr.s
ftmad-diagnostics.s
ftmad.s
ftsmul-diagnostics.s
ftsmul.s
ftssel-diagnostics.s
ftssel.s
incb-diagnostics.s
incb.s
incd-diagnostics.s
incd.s
inch-diagnostics.s
inch.s
incp-diagnostics.s
incp.s
incw-diagnostics.s
incw.s
index-diagnostics.s
index.s
insr-diagnostics.s
insr.s
lasta-diagnostics.s
lasta.s
lastb-diagnostics.s
lastb.s
ld1b-diagnostics.s
ld1b.s
ld1d-diagnostics.s
ld1d.s
ld1h-diagnostics.s
ld1h.s
ld1rb-diagnostics.s
ld1rb.s
ld1rd-diagnostics.s
ld1rd.s
ld1rh-diagnostics.s
ld1rh.s
ld1rqb-diagnostics.s
ld1rqb.s
ld1rqd-diagnostics.s
ld1rqd.s
ld1rqh-diagnostics.s
ld1rqh.s
ld1rqw-diagnostics.s
ld1rqw.s
ld1rsb-diagnostics.s
ld1rsb.s
ld1rsh-diagnostics.s
ld1rsh.s
ld1rsw-diagnostics.s
ld1rsw.s
ld1rw-diagnostics.s
ld1rw.s
ld1sb-diagnostics.s
ld1sb.s
ld1sh-diagnostics.s
ld1sh.s
ld1sw-diagnostics.s
ld1sw.s
ld1w-diagnostics.s
ld1w.s
ld2b-diagnostics.s
ld2b.s
ld2d-diagnostics.s
ld2d.s
ld2h-diagnostics.s
ld2h.s
ld2w-diagnostics.s
ld2w.s
ld3b-diagnostics.s
ld3b.s
ld3d-diagnostics.s
ld3d.s
ld3h-diagnostics.s
ld3h.s
ld3w-diagnostics.s
ld3w.s
ld4b-diagnostics.s
ld4b.s
ld4d-diagnostics.s
ld4d.s
ld4h-diagnostics.s
ld4h.s
ld4w-diagnostics.s
ld4w.s
ldff1b-diagnostics.s
ldff1b.s
ldff1d-diagnostics.s
ldff1d.s
ldff1h-diagnostics.s
ldff1h.s
ldff1sb-diagnostics.s
ldff1sb.s
ldff1sh-diagnostics.s
ldff1sh.s
ldff1sw-diagnostics.s
ldff1sw.s
ldff1w-diagnostics.s
ldff1w.s
ldnf1b-diagnostics.s
ldnf1b.s
ldnf1d-diagnostics.s
ldnf1d.s
ldnf1h-diagnostics.s
ldnf1h.s
ldnf1sb-diagnostics.s
ldnf1sb.s
ldnf1sh-diagnostics.s
ldnf1sh.s
ldnf1sw-diagnostics.s
ldnf1sw.s
ldnf1w-diagnostics.s
ldnf1w.s
ldnt1b-diagnostics.s
ldnt1b.s
ldnt1d-diagnostics.s
ldnt1d.s
ldnt1h-diagnostics.s
ldnt1h.s
ldnt1w-diagnostics.s
ldnt1w.s
ldr-diagnostics.s
ldr.s
lsl-diagnostics.s
lsl.s
lslr-diagnostics.s
lslr.s
lsr-diagnostics.s
lsr.s
lsrr-diagnostics.s
lsrr.s
mad-diagnostics.s
mad.s
matrix-multiply-fp-diagnostics.s [AArch64] Armv8.6-A Mat Mul SVE Assembly 2020-04-24 15:54:06 +01:00
matrix-multiply-fp32.s [AArch64] Armv8.6-A Mat Mul SVE Assembly 2020-04-24 15:54:06 +01:00
matrix-multiply-fp64.s [AArch64] Armv8.6-A Mat Mul SVE Assembly 2020-04-24 15:54:06 +01:00
matrix-multiply-int8-diagnostics.s [AArch64] Armv8.6-A Mat Mul SVE Assembly 2020-04-24 15:54:06 +01:00
matrix-multiply-int8.s [AArch64] Armv8.6-A Mat Mul SVE Assembly 2020-04-24 15:54:06 +01:00
mla-diagnostics.s
mla.s
mls-diagnostics.s
mls.s
mov-diagnostics.s [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY 2021-02-11 08:14:15 +00:00
mov.s [AArch64][SVE] Asm: Fix supported immediates for DUP/CPY 2021-02-11 08:14:15 +00:00
movprfx-diagnostics.s
movprfx.s
movs.s
msb-diagnostics.s
msb.s
mul-diagnostics.s
mul.s
nand-diagnostics.s
nand.s
nands-diagnostics.s
nands.s
neg-diagnostics.s
neg.s
nor-diagnostics.s
nor.s
nors-diagnostics.s
nors.s
not-diagnostics.s
not.s
nots.s
orn-diagnostics.s
orn.s
orns-diagnostics.s
orns.s
orr-diagnostics.s
orr.s
orrs-diagnostics.s
orrs.s
orv-diagnostics.s
orv.s
pfalse-diagnostics.s
pfalse.s
pfirst-diagnostics.s
pfirst.s
pnext-diagnostics.s
pnext.s
prfb-diagnostics.s
prfb.s
prfd-diagnostics.s
prfd.s
prfh-diagnostics.s
prfh.s
prfw-diagnostics.s
prfw.s
ptest-diagnostics.s
ptest.s
ptrue-diagnostics.s
ptrue.s
ptrues-diagnostics.s
ptrues.s
punpkhi-diagnostics.s
punpkhi.s
punpklo-diagnostics.s
punpklo.s
rbit-diagnostics.s
rbit.s
rdffr-diagnostics.s
rdffr.s
rdffrs-diagnostics.s
rdffrs.s
rdvl-diagnostics.s
rdvl.s
rev-diagnostics.s
rev.s
revb-diagnostics.s
revb.s
revh-diagnostics.s
revh.s
revw-diagnostics.s
revw.s
sabd-diagnostics.s
sabd.s
saddv-diagnostics.s
saddv.s
scvtf-diagnostics.s
scvtf.s
sdiv-diagnostics.s
sdiv.s
sdivr-diagnostics.s
sdivr.s
sdot-diagnostics.s
sdot.s
sel-diagnostics.s
sel.s
setffr.s
smax-diagnostics.s
smax.s
smaxv-diagnostics.s
smaxv.s
smin-diagnostics.s
smin.s
sminv-diagnostics.s
sminv.s
smulh-diagnostics.s
smulh.s
splice-diagnostics.s
splice.s
sqadd-diagnostics.s
sqadd.s
sqdecb-diagnostics.s
sqdecb.s
sqdecd-diagnostics.s
sqdecd.s
sqdech-diagnostics.s
sqdech.s
sqdecp-diagnostics.s
sqdecp.s
sqdecw-diagnostics.s
sqdecw.s
sqincb-diagnostics.s
sqincb.s
sqincd-diagnostics.s
sqincd.s
sqinch-diagnostics.s
sqinch.s
sqincp-diagnostics.s
sqincp.s
sqincw-diagnostics.s
sqincw.s
sqsub-diagnostics.s
sqsub.s
st1b-diagnostics.s
st1b.s [MC][SVE] Fix data operand for instruction alias of `st1d`. 2020-08-26 18:22:17 +00:00
st1d-diagnostics.s
st1d.s [MC][SVE] Fix data operand for instruction alias of `st1d`. 2020-08-26 18:22:17 +00:00
st1h-diagnostics.s
st1h.s [MC][SVE] Fix data operand for instruction alias of `st1d`. 2020-08-26 18:22:17 +00:00
st1w-diagnostics.s
st1w.s [MC][SVE] Fix data operand for instruction alias of `st1d`. 2020-08-26 18:22:17 +00:00
st2b-diagnostics.s
st2b.s
st2d-diagnostics.s
st2d.s
st2h-diagnostics.s
st2h.s
st2w-diagnostics.s
st2w.s
st3b-diagnostics.s
st3b.s
st3d-diagnostics.s
st3d.s
st3h-diagnostics.s
st3h.s
st3w-diagnostics.s
st3w.s
st4b-diagnostics.s
st4b.s
st4d-diagnostics.s
st4d.s
st4h-diagnostics.s
st4h.s
st4w-diagnostics.s
st4w.s
stnt1b-diagnostics.s
stnt1b.s
stnt1d-diagnostics.s
stnt1d.s
stnt1h-diagnostics.s
stnt1h.s
stnt1w-diagnostics.s
stnt1w.s
str-diagnostics.s
str.s
sub-diagnostics.s
sub.s
subr-diagnostics.s
subr.s
sunpkhi-diagnostics.s
sunpkhi.s
sunpklo-diagnostics.s
sunpklo.s
sxtb-diagnostics.s
sxtb.s
sxth-diagnostics.s
sxth.s
sxtw-diagnostics.s
sxtw.s
system-regs-diagnostics.s
system-regs.s
tbl-diagnostics.s
tbl.s
trn1-diagnostics.s
trn1.s
trn2-diagnostics.s
trn2.s
uabd-diagnostics.s
uabd.s
uaddv-diagnostics.s
uaddv.s
ucvtf-diagnostics.s
ucvtf.s
udiv-diagnostics.s
udiv.s
udivr-diagnostics.s
udivr.s
udot-diagnostics.s
udot.s
umax-diagnostics.s
umax.s
umaxv-diagnostics.s
umaxv.s
umin-diagnostics.s
umin.s
uminv-diagnostics.s
uminv.s
umulh-diagnostics.s
umulh.s
uqadd-diagnostics.s
uqadd.s
uqdecb-diagnostics.s
uqdecb.s
uqdecd-diagnostics.s
uqdecd.s
uqdech-diagnostics.s
uqdech.s
uqdecp-diagnostics.s
uqdecp.s
uqdecw-diagnostics.s
uqdecw.s
uqincb-diagnostics.s
uqincb.s
uqincd-diagnostics.s
uqincd.s
uqinch-diagnostics.s
uqinch.s
uqincp-diagnostics.s
uqincp.s
uqincw-diagnostics.s
uqincw.s
uqsub-diagnostics.s
uqsub.s
uunpkhi-diagnostics.s
uunpkhi.s
uunpklo-diagnostics.s
uunpklo.s
uxtb.s
uxth.s
uxtw.s
uzp1-diagnostics.s
uzp1.s
uzp2-diagnostics.s
uzp2.s
whilele-diagnostics.s
whilele.s
whilelo-diagnostics.s
whilelo.s
whilels-diagnostics.s
whilels.s
whilelt-diagnostics.s
whilelt.s
wrffr-diagnostics.s
wrffr.s
zip1-diagnostics.s
zip1.s
zip2-diagnostics.s
zip2.s