Skip to content

Commit 409fa78

Browse files
[ARM] Add "avoidmuls" to STAR-MC1 also (#123706)
PR #112540 as the reference.
1 parent 44f638f commit 409fa78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llvm/lib/Target/ARM/ARMProcessors.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ def : ProcessorModel<"star-mc1", CortexM4Model, [ARMv8mMainline,
377377
FeatureHasSlowFPVFMx,
378378
FeatureUseMISched,
379379
FeatureHasNoBranchPredictor,
380+
FeatureAvoidMULS,
380381
FeatureFixCMSE_CVE_2021_35465]>;
381382

382383
def : ProcessorModel<"cortex-m35p", CortexM4Model, [ARMv8mMainline,

llvm/test/CodeGen/Thumb2/avoidmuls.mir

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# RUN: llc -mtriple=thumbv7m-none-eabi -mcpu=cortex-m33 -run-pass=thumb2-reduce-size %s -o - | FileCheck %s --check-prefix=MUL
2+
# RUN: llc -mtriple=thumbv7m-none-eabi -mcpu=star-mc1 -run-pass=thumb2-reduce-size %s -o - | FileCheck %s --check-prefix=MUL
23
# RUN: llc -mtriple=thumbv7m-none-eabi --run-pass=thumb2-reduce-size %s -o - | FileCheck %s --check-prefix=MULS
34

45
---
@@ -17,4 +18,4 @@ body: |
1718

1819
# MULS-LABEL: test
1920
# MULS: tMUL
20-
# MULS-NOT: t2MUL
21+
# MULS-NOT: t2MUL

0 commit comments

Comments
 (0)