aboutsummaryrefslogtreecommitdiff
path: root/src/main/stanza/ir-utils.stanza
diff options
context:
space:
mode:
authorazidar2016-01-31 12:59:31 -0800
committerazidar2016-02-09 18:57:06 -0800
commite985d47312458459e9ebe42fe99b5a063c08e637 (patch)
treed726c711e86d6e948a220a568dcae0a997629d18 /src/main/stanza/ir-utils.stanza
parent2bd423fa061fb3e0973fa83e98f2877fd4616746 (diff)
Changed stanza output of UInt/SInt to include widths. Made tests match accordingly
Diffstat (limited to 'src/main/stanza/ir-utils.stanza')
-rw-r--r--src/main/stanza/ir-utils.stanza5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/stanza/ir-utils.stanza b/src/main/stanza/ir-utils.stanza
index 24149649..3fc8b155 100644
--- a/src/main/stanza/ir-utils.stanza
+++ b/src/main/stanza/ir-utils.stanza
@@ -395,8 +395,9 @@ defmethod print (o:OutputStream, e:Expression) :
(e:SubField) : print-all(o, [exp(e) "." name(e)])
(e:SubIndex) : print-all(o, [exp(e) "[" value(e) "]"])
(e:SubAccess) : print-all(o, [exp(e) "[" index(e) "]"])
- (e:UIntValue) : print-all(o, ["UInt(" value(e) ")"])
- (e:SIntValue) : print-all(o, ["SInt(" value(e) ")"])
+ (e:UIntValue) :
+ print-all(o, ["UInt<" width(e) ">(" value(e) ")"])
+ (e:SIntValue) : print-all(o, ["SInt<" width(e) ">(" value(e) ")"])
(e:DoPrim) :
print-all(o, [op(e) "("])
print-all(o, join(concat(args(e), consts(e)), ", "))