Project

General

Profile

Bug #5685

Usage of rand in trace

Added by Mikhail Chupilko over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Andrei Tatarnikov
Category:
Template Processor
Target version:
Start date:
03/04/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
2.1.4-beta-150219
Platform:
Published in build:
150324

Description

This construction won't be compiled, being a part of a ruby template.

x = rand(1, 12)
trace "\nInput parameter value: %d\n", x

Whereas this construction will work
x = rand(1, 12)
add x1, x0, x, 0

History

#1

Updated by Andrei Tatarnikov over 5 years ago

  • Priority changed from Normal to Urgent
#2

Updated by Alexander Kamkin over 5 years ago

  • Category set to Template Processor
  • Target version set to 2.1
#3

Updated by Alexander Kamkin over 5 years ago

  • Subject changed from [template] Usage of rand in trace to Usage of rand in trace
#4

Updated by Andrei Tatarnikov over 5 years ago

Fixed in r3274. The following code now works fine:

x = rand(1, 12)
addi t1, t0, x
trace "\nInput parameter value: %d\n", x
#5

Updated by Andrei Tatarnikov over 5 years ago

Updated VLIW demo templates - r3275.

#6

Updated by Andrei Tatarnikov over 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

miniMIPS test template examples were updated - r3276.

#7

Updated by Andrei Tatarnikov over 5 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 150324

Also available in: Atom PDF