diff options
| author | azidar | 2016-02-04 09:23:09 -0800 |
|---|---|---|
| committer | azidar | 2016-02-09 18:57:06 -0800 |
| commit | ddeac42c426dbda9000eef1b74f8d5032c55f58f (patch) | |
| tree | b3d5b521e2aeeb00341ce99d7f59366b06057dab /test | |
| parent | b2d9eacd26e8283f438bc6429770497290d5b9c3 (diff) | |
Added test for UInt/SInts that take strings
Diffstat (limited to 'test')
| -rw-r--r-- | test/parser/ints.fir | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/parser/ints.fir b/test/parser/ints.fir new file mode 100644 index 00000000..0c79276b --- /dev/null +++ b/test/parser/ints.fir @@ -0,0 +1,20 @@ +; RUN: firrtl -i %s -o %s.out -X firrtl 2>&1 | tee %s.out | FileCheck %s +: XFAIL: * + +circuit top : + module top : + output a : UInt + output b : SInt + output c : SInt + a <= UInt(8) + b <= SInt(8) + c <= SInt(-8) + +; CHECK: circuit top : +; CHECK: module top : +; CHECK: output a : UInt +; CHECK: output b : SInt +; CHECK: output c : SInt +; CHECK: a <= UInt<4>("h8") +; CHECK: b <= SInt<5>("h08") +; CHECK: c <= SInt<4>("h8") |
