Skip to content

Commit

Permalink
examples: add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Feb 26, 2024
1 parent 1bb8c79 commit 363ed15
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/cfg/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
test:
paths: []
# - MC/RISCV
# - CodeGen/RISCV
9 changes: 9 additions & 0 deletions examples/tests/xcorev/cv_abs.test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// RUN: %clang --target=riscv32 -march=rv32ixs4emac -c -o %t.o %s
// RUN: llvm-objdump --disassembler-options=numeric -d %t.o | FileCheck %s

int main() {
// CHECK: 0b 90 1a 01 cv.abs x1, x2
asm("cv.abs x1, x2");

return 0;
}
9 changes: 9 additions & 0 deletions examples/tests/xcorev/cv_mac.test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// RUN: %clang --target=riscv32 -march=rv32ixs4emac -c -o %t.o %s
// RUN: llvm-objdump --disassembler-options=numeric -d %t.o | FileCheck %s

int main() {
// CHECK: 0b 90 1a 01 cv.mac x1, x2, x3
asm("cv.mac x1, x2, x3");

return 0;
}

0 comments on commit 363ed15

Please sign in to comment.