Skip to content

Commit

Permalink
Restructure Core tests
Browse files Browse the repository at this point in the history
- Move tests into src subfolder
- Use temp directory for intermediate object files
- Include test report in matrix summary
  • Loading branch information
JonatanAntoni committed Nov 27, 2023
1 parent f44ff7b commit c53c0f5
Show file tree
Hide file tree
Showing 59 changed files with 127 additions and 122 deletions.
Empty file added CMSIS/Core/Test/README.md
Empty file.
10 changes: 0 additions & 10 deletions CMSIS/Core/Test/bkpt.c

This file was deleted.

11 changes: 8 additions & 3 deletions CMSIS/Core/Test/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,24 @@ class OptimizationAxis(Enum):
SIZE = ('size')


def timestamp():
return datetime.now().strftime('%Y%m%d%H%M%S')


@matrix_action
def lit(config):
def lit(config, results):
"""Run tests for the selected configurations using llvm's lit."""
yield run_lit(config.compiler[0], config.device[1], config.optimize[0])
results[0].test_report.write(f"lit-{config.compiler[0]}-{config.optimize[0]}-{config.device[1]}-{timestamp()}.xunit")


def timestamp():
return datetime.now().strftime('%Y%m%d%H%M%S')


@matrix_command()
@matrix_command(test_report=FileReport(f"lit.xml") | JUnitReport())
def run_lit(toolchain, device, optimize):
return ["lit", "--xunit-xml-output", f"lit-{toolchain}-{optimize}-{device}.xunit", "-D", f"toolchain={toolchain}", "-D", f"device={device}", "-D", f"optimize={optimize}", "." ]
return ["lit", "--xunit-xml-output", f"lit.xml", "-D", f"toolchain={toolchain}", "-D", f"device={device}", "-D", f"optimize={optimize}", "src" ]


@matrix_filter
Expand Down
11 changes: 0 additions & 11 deletions CMSIS/Core/Test/dmb.c

This file was deleted.

11 changes: 0 additions & 11 deletions CMSIS/Core/Test/dsb.c

This file was deleted.

11 changes: 0 additions & 11 deletions CMSIS/Core/Test/isb.c

This file was deleted.

6 changes: 3 additions & 3 deletions CMSIS/Core/Test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ def get_cc(self):
def get_ccflags(self):
ccflags = [
'--target=arm-arm-none-eabi', f'-mcpu={DEVICES[self.device]["mcpu"]}', f'-mfpu={DEVICES[self.device]["mfpu"]}',
self.OPTIMIZE[self.optimize], '-I', '../Include', '-c', '-D', f'CORE_HEADER=\\"{DEVICES[device]["header"]}\\"']
self.OPTIMIZE[self.optimize], '-I', os.path.abspath('../Include'), '-c', '-D', f'CORE_HEADER=\\"{DEVICES[device]["header"]}\\"']
if device.endswith('S') and not device.endswith('NS'):
ccflags += ["-mcmse"]
ccflags += list(sum([('-D', f'{define}={value}') for (define, value) in DEVICES[self.device]['defines'].items()], ()))
Expand All @@ -708,7 +708,7 @@ def get_ccflags(self):
floatabi='hard'
ccflags = [
f'-mcpu={DEVICES[self.device]["mcpu"]}', f'-mfloat-abi={floatabi}',
self.OPTIMIZE[self.optimize], '-I', '../Include',
self.OPTIMIZE[self.optimize], '-I', os.path.abspath('../Include'),
'-D', f'CORE_HEADER=\\"{DEVICES[device]["header"]}\\"', '-c']
if DEVICES[self.device]["mfpu"] != "none":
ccflags += [f'-mfpu={DEVICES[self.device]["mfpu"]}']
Expand Down Expand Up @@ -765,7 +765,7 @@ def get_ccflags(self):
ccflags = [
f'--target={self.TARGET[self.device]}', self.OPTIMIZE[self.optimize],
f'-mcpu={DEVICES[self.device]["mcpu"]}', f'-mfpu={DEVICES[self.device]["mfpu"]}',
'-I', '../Include', '-c', '-D', f'CORE_HEADER=\\"{DEVICES[device]["header"]}\\"']
'-I', os.path.abspath('../Include'), '-c', '-D', f'CORE_HEADER=\\"{DEVICES[device]["header"]}\\"']
if device.endswith('S') and not device.endswith('NS'):
ccflags += ["-mcmse"]
ccflags += list(sum([('-D', f'{define}={value}') for (define, value) in DEVICES[self.device]['defines'].items()], ()))
Expand Down
10 changes: 0 additions & 10 deletions CMSIS/Core/Test/nop.c

This file was deleted.

11 changes: 0 additions & 11 deletions CMSIS/Core/Test/sev.c

This file was deleted.

2 changes: 1 addition & 1 deletion CMSIS/Core/Test/apsr.c → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

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

#include "cmsis_compiler.h"

void bkpt() {
// CHECK-LABEL: <bkpt>:
// CHECK: bkpt {{#0x15|#21}}
__BKPT(0x15);
// CHECK: {{(bx lr)|(pop {.*pc})}}
}
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/clrex.c → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

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

#include "cmsis_compiler.h"

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

#include "cmsis_compiler.h"

Expand Down
11 changes: 11 additions & 0 deletions CMSIS/Core/Test/src/dmb.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

void dmb() {
// CHECK-LABEL: <dmb>:
// CHECK: dmb sy
__DMB();
// CHECK: {{(bx lr)|(pop {.*pc})}}
}

11 changes: 11 additions & 0 deletions CMSIS/Core/Test/src/dsb.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

void dsb() {
// CHECK-LABEL: <dsb>:
// CHECK: dsb sy
__DSB();
// CHECK: {{(bx lr)|(pop {.*pc})}}
}

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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

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

#include "cmsis_compiler.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: armv7a
// UNSUPPORTED: fpu
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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.c → CMSIS/Core/Test/src/fpscr.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: fpu
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// UNSUPPORTED: fpu
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/ipsr.c → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
11 changes: 11 additions & 0 deletions CMSIS/Core/Test/src/isb.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

void isb() {
// CHECK-LABEL: <isb>:
// CHECK: isb sy
__ISB();
// CHECK: {{(bx lr)|(pop {.*pc})}}
}

2 changes: 1 addition & 1 deletion CMSIS/Core/Test/lda.c → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/msp.c → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

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

#include "cmsis_compiler.h"

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

#include "cmsis_compiler.h"

void nop() {
// CHECK-LABEL: <nop>:
// CHECK: {{(nop|mov r8, r8)}}
__NOP();
// CHECK: {{(bx lr)|(pop {.*pc})}}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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.c → CMSIS/Core/Test/src/psplim.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: thumbv8m.main
// RUN: %cc% %ccflags% %ccout% %s.o %s; llvm-objdump --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.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 → CMSIS/Core/Test/src/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 --mcpu=%mcpu% -d %s.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s
// RUN: %cc% %ccflags% %ccout% %T/%basename_t.o %s; llvm-objdump --mcpu=%mcpu% -d %T/%basename_t.o | FileCheck --allow-unused-prefixes --check-prefixes %prefixes% %s

#include "cmsis_compiler.h"

Expand Down
Loading

0 comments on commit c53c0f5

Please sign in to comment.