Skip to content

Commit 4b35ea1

Browse files
author
Simon Dardis
committedDec 21, 2017
[mips] Fix the invalid EVA test
During the review of D40362 I spotted that this test wasn't actually testing the eva instructions due to '-mattr==eva', rather than '-mattr=+eva', which resulted in test having no effect. llvm-svn: 321273
1 parent 6c0d0f5 commit 4b35ea1

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed
 

‎llvm/test/MC/Mips/eva/invalid.s

+24-23
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
# Instructions that are invalid
22
#
33
# RUN: not llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips32r2 \
4-
# RUN: -mattr==eva 2>%t1
4+
# RUN: -mattr=+eva 2>%t1
55
# RUN: FileCheck %s < %t1
66

77
.set noat
8-
cachee -1, 255($7) # CHECK: :[[@LINE]]:12: error: invalid operand for instruction
9-
cachee 32, 255($7) # CHECK: :[[@LINE]]:12: error: invalid operand for instruction
10-
prefe -1, 255($7) # CHECK: :[[@LINE]]:11: error: invalid operand for instruction
11-
prefe 32, 255($7) # CHECK: :[[@LINE]]:11: error: invalid operand for instruction
8+
cachee -1, 255($7) # CHECK: :[[@LINE]]:12: error: expected 5-bit unsigned immediate
9+
cachee 32, 255($7) # CHECK: :[[@LINE]]:12: error: expected 5-bit unsigned immediate
10+
prefe -1, 255($7) # CHECK: :[[@LINE]]:11: error: expected 5-bit unsigned immediate
11+
prefe 32, 255($7) # CHECK: :[[@LINE]]:11: error: expected 5-bit unsigned immediate
1212
lle $33, 8($5) # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
13-
lle $4, 8($33) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
14-
lle $4, 512($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
15-
lle $4, -513($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
13+
lle $4, 8($33) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
14+
lle $4, 512($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
15+
lle $4, -513($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
1616
lwe $33, 8($5) # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
17-
lwe $4, 8($33) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
18-
lwe $4, 512($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
19-
lwe $4, -513($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
17+
lwe $4, 8($33) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
18+
lwe $4, 512($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
19+
lwe $4, -513($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
2020
sbe $33, 8($5) # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
21-
sbe $4, 8($33) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
22-
sbe $4, 512($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
23-
sbe $4, -513($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
21+
sbe $4, 8($33) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
22+
sbe $4, 512($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
23+
sbe $4, -513($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
2424
sce $33, 8($5) # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
25-
sce $4, 8($33) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
26-
sce $4, 512($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
27-
sce $4, -513($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
25+
sce $4, 8($33) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
26+
sce $4, 512($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
27+
sce $4, -513($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
2828
she $33, 8($5) # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
29-
she $4, 8($33) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
30-
she $4, 512($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
31-
she $4, -513($5) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
29+
she $4, 8($33) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
30+
she $4, 512($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
31+
she $4, -513($5) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
3232
swe $33, 8($4) # CHECK: :[[@LINE]]:9: error: invalid operand for instruction
33-
swe $5, 8($34) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
34-
swe $5, 512($4) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
35-
swe $5, -513($4) # CHECK: :[[@LINE]]:13: error: invalid operand for instruction
33+
swe $5, 8($34) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
34+
swe $5, 512($4) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
35+
swe $5, -513($4) # CHECK: :[[@LINE]]:13: error: expected memory with 9-bit signed offset
36+

0 commit comments

Comments
 (0)
Please sign in to comment.