Skip to content

Commit

Permalink
cmpccxadd: merge all cases into cmpccxadd.c
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaan Lu <[email protected]>
  • Loading branch information
jiaanlu committed Jun 11, 2024
1 parent 8e615c9 commit e1955d5
Show file tree
Hide file tree
Showing 46 changed files with 756 additions and 1,279 deletions.
18 changes: 6 additions & 12 deletions BM/cmpccxadd/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2024 Intel Corporation.
# Jiaan Lu <[email protected]>

CFLAGS = -g
CC = gcc
CFLAGS = -g -Wall
TARGET = cmpccxadd

src = $(filter-out cmpxadd.c, $(wildcard *.c))
target = $(patsubst %.c, %, ${src})

.PHONY: all clean

%:%.c
$(CC) ${CFLAGS} $^ -o $@

all: ${target}
$(TARGET): cmpccxadd.c
$(CC) $(CFLAGS) -o $@ $<

clean:
rm -f ${target}
rm -f $(TARGET)
49 changes: 46 additions & 3 deletions BM/cmpccxadd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,51 @@ This test suite provides basic functional check to ensure CMPccXADD works proper
```
make
# To run a specific case
(for example) ./cmpbexadd_above
# To run all cases at once
./runtest_all.sh
./cmpccxadd -t <testcase_id>
(for example, cmpbexadd_above) ./cmpccxadd -t 1
```
Test results (PASS or FAIL) will be printed out.

## Testcase ID
| Case ID | Case Name |
| ------ | ---------------------------- |
| 1 | cmpbexadd_above |
| 2 | cmpbexadd_below |
| 3 | cmpbexadd_equal |
| 4 | cmpbxadd_above |
| 5 | cmpbxadd_below |
| 6 | cmpbxadd_equal |
| 7 | cmplexadd_equal |
| 8 | cmplexadd_less |
| 9 | cmplexadd_more |
| 10 | cmplxadd_equal |
| 11 | cmplxadd_less |
| 12 | cmplxadd_more |
| 13 | cmpnbexadd_above |
| 14 | cmpnbexadd_below |
| 15 | cmpnbexadd_equal |
| 16 | cmpnbxadd_above |
| 17 | cmpnbxadd_below |
| 18 | cmpnbxadd_equal |
| 19 | cmpnlexadd_equal |
| 20 | cmpnlexadd_less |
| 21 | cmpnlexadd_more |
| 22 | cmpnlxadd_equal |
| 23 | cmpnlxadd_less |
| 24 | cmpnlxadd_more |
| 25 | cmpnoxadd_not_overflow |
| 26 | cmpnoxadd_overflow |
| 27 | cmpnpxadd_even |
| 28 | cmpnpxadd_odd |
| 29 | cmpnsxadd_negative |
| 30 | cmpnsxadd_positive |
| 31 | cmpnzxadd_not_zero |
| 32 | cmpnzxadd_zero |
| 33 | cmpoxadd_not_overflow |
| 34 | cmpoxadd_overflow |
| 35 | cmppxadd_even |
| 36 | cmppxadd_odd |
| 37 | cmpsxadd_negative |
| 38 | cmpsxadd_positive |
| 39 | cmpzxadd_not_zero |
| 40 | cmpzxadd_zero |
28 changes: 0 additions & 28 deletions BM/cmpccxadd/cmpbexadd_above.c

This file was deleted.

28 changes: 0 additions & 28 deletions BM/cmpccxadd/cmpbexadd_below.c

This file was deleted.

28 changes: 0 additions & 28 deletions BM/cmpccxadd/cmpbexadd_equal.c

This file was deleted.

28 changes: 0 additions & 28 deletions BM/cmpccxadd/cmpbxadd_above.c

This file was deleted.

28 changes: 0 additions & 28 deletions BM/cmpccxadd/cmpbxadd_below.c

This file was deleted.

28 changes: 0 additions & 28 deletions BM/cmpccxadd/cmpbxadd_equal.c

This file was deleted.

Loading

0 comments on commit e1955d5

Please sign in to comment.