Skip to content

Commit 015526b

Browse files
committed
[RISCV] Fix spelling instuctions->instructions.
Taken from llvm#98259 and with the necessary test updates added.
1 parent d99efd5 commit 015526b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

clang/test/Driver/print-supported-extensions-riscv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
// CHECK-NEXT: zce 1.0 'Zce' (Compressed extensions for microcontrollers)
5252
// CHECK-NEXT: zcf 1.0 'Zcf' (Compressed Single-Precision Floating-Point Instructions)
5353
// CHECK-NEXT: zcmop 1.0 'Zcmop' (Compressed May-Be-Operations)
54-
// CHECK-NEXT: zcmp 1.0 'Zcmp' (sequenced instuctions for code-size reduction)
55-
// CHECK-NEXT: zcmt 1.0 'Zcmt' (table jump instuctions for code-size reduction)
54+
// CHECK-NEXT: zcmp 1.0 'Zcmp' (sequenced instructions for code-size reduction)
55+
// CHECK-NEXT: zcmt 1.0 'Zcmt' (table jump instructions for code-size reduction)
5656
// CHECK-NEXT: zba 1.0 'Zba' (Address Generation Instructions)
5757
// CHECK-NEXT: zbb 1.0 'Zbb' (Basic Bit-Manipulation)
5858
// CHECK-NEXT: zbc 1.0 'Zbc' (Carry-Less Multiplication)

llvm/lib/Target/RISCV/RISCVFeatures.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,19 +406,19 @@ def FeatureStdExtZcf
406406

407407
def FeatureStdExtZcmp
408408
: RISCVExtension<"zcmp", 1, 0,
409-
"'Zcmp' (sequenced instuctions for code-size reduction)",
409+
"'Zcmp' (sequenced instructions for code-size reduction)",
410410
[FeatureStdExtZca]>;
411411
def HasStdExtZcmp : Predicate<"Subtarget->hasStdExtZcmp() && !Subtarget->hasStdExtC()">,
412412
AssemblerPredicate<(all_of FeatureStdExtZcmp),
413-
"'Zcmp' (sequenced instuctions for code-size reduction)">;
413+
"'Zcmp' (sequenced instructions for code-size reduction)">;
414414

415415
def FeatureStdExtZcmt
416416
: RISCVExtension<"zcmt", 1, 0,
417-
"'Zcmt' (table jump instuctions for code-size reduction)",
417+
"'Zcmt' (table jump instructions for code-size reduction)",
418418
[FeatureStdExtZca, FeatureStdExtZicsr]>;
419419
def HasStdExtZcmt : Predicate<"Subtarget->hasStdExtZcmt()">,
420420
AssemblerPredicate<(all_of FeatureStdExtZcmt),
421-
"'Zcmt' (table jump instuctions for code-size reduction)">;
421+
"'Zcmt' (table jump instructions for code-size reduction)">;
422422

423423
def FeatureStdExtZce
424424
: RISCVExtension<"zce", 1, 0,

llvm/test/MC/RISCV/rv32zcmt-valid.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
# CHECK-ASM-AND-OBJ: cm.jt 1
2626
# CHECK-ASM: encoding: [0x06,0xa0]
27-
# CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instuctions for code-size reduction){{$}}
27+
# CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instructions for code-size reduction){{$}}
2828
cm.jt 1
2929

3030
# CHECK-ASM-AND-OBJ: cm.jalt 32
3131
# CHECK-ASM: encoding: [0x82,0xa0]
32-
# CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instuctions for code-size reduction){{$}}
32+
# CHECK-NO-EXT: error: instruction requires the following: 'Zcmt' (table jump instructions for code-size reduction){{$}}
3333
cm.jalt 32

0 commit comments

Comments
 (0)