Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
JonatanAntoni committed Oct 10, 2023
1 parent 35642f8 commit 3591ee6
Show file tree
Hide file tree
Showing 48 changed files with 103 additions and 54 deletions.
28 changes: 28 additions & 0 deletions .devcontainer/ubuntu-22.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM --platform=linux/amd64 ubuntu:22.04

RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get -y install \
build-essential \
curl \
gdb \
less \
python3 \
python3-pip \
python-is-python3 \
git \
libtinfo5 \
llvm-15 \
llvm-15-tools \
unzip && \
ln -s /usr/bin/FileCheck-15 /usr/bin/FileCheck && \
ln -s /usr/bin/llvm-objdump-15 /usr/bin/llvm-objdump

RUN curl -sLO https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-17.0.1/LLVMEmbeddedToolchainForArm-17.0.1-Linux-x86_64.tar.xz && \
tar -xvf LLVMEmbeddedToolchainForArm-17.0.1-Linux-x86_64.tar.xz && \
rm LLVMEmbeddedToolchainForArm-17.0.1-Linux-x86_64.tar.xz && \
mv LLVMEmbeddedToolchainForArm-17.0.1-Linux-x86_64 /opt/arm-none-eabi-clang-17.0.1

ENV CLANG_TOOLCHAIN_17_0_1=/opt/arm-none-eabi-clang-17.0.1/bin

CMD ["/bin/bash"]
13 changes: 13 additions & 0 deletions .devcontainer/ubuntu-22.04/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Ubuntu-22.04",
"build": { "dockerfile": "Dockerfile" },

"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack"
]
}
}
}
9 changes: 5 additions & 4 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ jobs:
working-directory: /home/runner
run: |
sudo apt-get update
sudo apt-get install libtinfo5 llvm-15-tools
sudo apt-get install libtinfo5 llvm-15 llvm-15-tools
sudo ln -s /usr/bin/llvm-objdump-15 /usr/bin/llvm-objdump
sudo ln -s /usr/bin/FileCheck-15 /usr/bin/FileCheck
if [[ ! -d LLVMEmbeddedToolchainForArm-17.0.0-Linux-x86_64 ]]; then
wget https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/preview-17.0.0-devdrop0/LLVMEmbeddedToolchainForArm-17.0.0-Linux-x86_64.tar.xz
tar -xf LLVMEmbeddedToolchainForArm-17.0.0-Linux-x86_64.tar.xz
wget https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-17.0.1/LLVMEmbeddedToolchainForArm-17.0.1-Linux-x86_64.tar.xz
tar -xf LLVMEmbeddedToolchainForArm-17.0.1-Linux-x86_64.tar.xz
fi
./LLVMEmbeddedToolchainForArm-17.0.0-Linux-x86_64/bin/clang --version
./LLVMEmbeddedToolchainForArm-17.0.1-Linux-x86_64/bin/clang --version
echo "CLANG_TOOLCHAIN_17_0_0=$(pwd)/LLVMEmbeddedToolchainForArm-17.0.0-Linux-x86_64/bin" >> $GITHUB_ENV
- name: Prepare vcpkg env
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/apsr.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumbv6m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/basepri.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumb-2, thumbv7m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
4 changes: 2 additions & 2 deletions CMSIS/Core/Test/bkpt.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

void bkpt() {
// CHECK-LABEL: <bkpt>:
// CHECK: bkpt #0x15
// CHECK: bkpt {{#0x15|#21}}
__BKPT(0x15);
// CHECK: bx lr
}
2 changes: 2 additions & 0 deletions CMSIS/Core/Test/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ class DeviceAxis(Enum):
CM35P = ('Cortex-M35P', 'CM35P')
CM35PS = ('Cortex-M35PS', 'CM35PS')
CM35PNS = ('Cortex-M35PNS', 'CM35PNS')
CM55 = ('Cortex-M55', 'CM55')
CM55S = ('Cortex-M55S', 'CM55S')
CM55NS = ('Cortex-M55NS', 'CM55NS')
CM85 = ('Cortex-M85', 'CM85')
CM85S = ('Cortex-M85S', 'CM85S')
CM85NS = ('Cortex-M85NS', 'CM85NS')
CA5 = ('Cortex-A5', 'CA5')
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/clrex.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: ldrex
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/clz.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: clz
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/control.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumbv6m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/dmb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/dsb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/fault_irq.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumb-2
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/faultmask.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumb-2, thumbv7m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/fpscr_nofp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
void get_fpscr() {
// CHECK-LABEL: <get_fpscr>:
// CHECK-NOT: vmrs {{r[0-9]+}}, fpscr
// CHECK: movs {{r[0-9]+}}, #0x0
// CHECK: movs {{r[0-9]+}}, #0
volatile uint32_t result = __get_FPSCR();
// CHECK: bx lr
}
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/ipsr.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// REQUIRES: thumbv6m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/irq.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/isb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/lda.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: armv8m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/ldaex.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: armv8m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/ldrex.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: ldrex
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/ldrt.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// REQUIRES: thumb-2
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
10 changes: 8 additions & 2 deletions CMSIS/Core/Test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
DEVICES = {
'CM0': {
'arch': 'thumbv6m',
'triple': 'thumbv6-m',
'triple': 'thumbv6m',
'abi': 'eabi',
'mcpu': 'Cortex-M0',
'mfpu': 'none',
Expand All @@ -23,7 +23,7 @@
},
'CM0plus': {
'arch': 'thumbv6m',
'triple': 'thumbv6-m',
'triple': 'thumbv6m',
'abi': 'eabi',
'mcpu': 'Cortex-M0plus',
'mfpu': 'none',
Expand Down Expand Up @@ -568,6 +568,9 @@ def __init__(self, toolchain, device, optimize):

def get_root_from_env(self):
keys = sorted((k for k in os.environ.keys() if k.startswith(f'{self._toolchain}_TOOLCHAIN_')), reverse=True)
if not keys:
print(f"Toolchain '{self._toolchain}' not registered!")
return None
return os.environ.get(keys[0])

def get_root(self):
Expand Down Expand Up @@ -697,6 +700,9 @@ def get_ccflags(self):
for feature in DEVICES[device]['features']:
config.available_features.add(feature)

objdump = os.path.join(Toolchain("CLANG", "none", "none").get_root(), 'llvm-objdump')
config.substitutions.append(("llvm-objdump", objdump))

config.substitutions.append(("%ccout%", "-o"))
config.substitutions.append(("%cc%", tc.get_cc()))
config.substitutions.append(("%ccflags%", ' '.join(tc.get_ccflags())))
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/msp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumbv6m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/nop.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/noreturn.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/primask.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumbv6m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/psp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumbv6m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/psplim_baseline.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: thumbv8m.base
// UNSUPPORTED: thumbv8m.main
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/rbit.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumb-2
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/rev.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/rev16.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/revsh.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/ror.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/rrx.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumb-2
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/sev.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
8 changes: 4 additions & 4 deletions CMSIS/Core/Test/simd.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,12 @@ void sxtb16_ror() {
// CHECK: sxtb16 {{r[0-9]+}}, {{r[0-9]+}}, ror #24
result = __SXTB16_RORn(s32_1, 24);

// CHECK: ror.w [[REG:r[0-9]+]], {{r[0-9]+}}, #0x5
// CHECK: ror.w [[REG:r[0-9]+]], {{r[0-9]+}}, {{#5|#0x5}}
// CHECK: sxtb16 {{r[0-9]+}}, [[REG]]
// CHECK-NOT: , ror
result = __SXTB16_RORn(s32_1, 5);

// CHECK: ror{{.w|ne}} [[REG:r[0-9]+]], {{r[0-9]+}}
// CHECK: ror{{.w|ne|s}} [[REG:r[0-9]+]], {{r[0-9]+}}
// CHECK: sxtb16 {{r[0-9]+}}, [[REG]]
// CHECK-NOT: , ror
result = __SXTB16_RORn(s32_1, u8);
Expand All @@ -505,12 +505,12 @@ void sxtab16_ror() {
// CHECK: sxtab16 {{r[0-9]+}}, {{r[0-9]+}}, {{r[0-9]+}}, ror #24
result = __SXTAB16_RORn(s32_1, s32_2, 24);

// CHECK: ror.w [[REG:r[0-9]+]], {{r[0-9]+}}, #0x5
// CHECK: ror.w [[REG:r[0-9]+]], {{r[0-9]+}}, {{#5|#0x5}}
// CHECK: sxtab16 {{r[0-9]+}}, {{r[0-9]+}}, [[REG]]
// CHECK-NOT: , ror
result = __SXTAB16_RORn(s32_1, s32_2, 5);

// CHECK: ror{{.w|ne}} [[REG:r[0-9]+]], {{r[0-9]+}}
// CHECK: ror{{.w|ne|s}} [[REG:r[0-9]+]], {{r[0-9]+}}
// CHECK: sxtab16 {{r[0-9]+}}, {{r[0-9]+}}, [[REG]]
// CHECK-NOT: , ror
result = __SXTAB16_RORn(s32_1, s32_2, u8);
Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/sp_ns.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumbv8m.base
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/ssat.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: sat
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/stl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: armv8m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/stlex.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: armv8m
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/strex.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: ldrex
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/strt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumb-2
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --triple=%triple% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
Loading

0 comments on commit 3591ee6

Please sign in to comment.