[llvm-uc] [PATCH] Add UniCore first test case

  • From: Chen Wei-Ren <chenwj@xxxxxxxxxxxxxxxxx>
  • To: llvm-uc@xxxxxxxxxxxxx
  • Date: Thu, 22 Nov 2012 14:37:45 +0800

  This patch creates test/CodeGen/UniCore and its first test case.
After applying this patch, you can do the following to see if our
uc32 backend start working (at its very very first stage).

(a) Run all test cases (not only UniCore).

$ cd $LLVM_BUILD
$ make check

  ...
    LLVM :: CodeGen/UniCore/ret_void.ll
  ...

(b) Run UniCore test case only.

$ cd $LLVM_BUILD
$ ./Debug+Asserts/bin/llvm-lit ../llvm/test/CodeGen/UniCore/ret_void.ll
-- Testing: 1 tests, 1 threads --
FAIL: LLVM :: CodeGen/UniCore/ret_void.ll (1 of 1)
Testing Time: 0.02s
********************
Failing Tests (1):
    LLVM :: CodeGen/UniCore/ret_void.ll

  Unexpected Failures: 1

(c) Run `llc` to compile ret_void.ll to see its assembly is right or not.

$ cd $LLVM_BUILD
$ ./Debug+Asserts/bin/llc -march=unicore32 
../llvm/test/CodeGen/UniCore/ret_void.ll

Chen Wei-Ren (1):
  Add UniCore first test case

 test/CodeGen/UniCore/lit.local.cfg | 5 +++++
 test/CodeGen/UniCore/ret_void.ll   | 5 +++++
 2 files changed, 10 insertions(+)
 create mode 100644 test/CodeGen/UniCore/lit.local.cfg
 create mode 100644 test/CodeGen/UniCore/ret_void.ll

-- 
1.7.12.3


Other related posts: