Mentions légales du service

Skip to content
Snippets Groups Projects
Commit efcd8ae0 authored by Lena Olson's avatar Lena Olson Committed by Andreas Sandberg
Browse files

ruby: fix and/or precedence in slicc


The slicc compiler currently treats && and || with the same precedence.
This is highly non-intuitive to people used to C, and was probably an
error. This patch makes && bind tighter than ||.

For example, previously:
if (A || B && C)
compiled to:
if ((A || B) && C)
With this patch, it compiles to:
if (A || (B && C))

Change-Id: Idbbd5b50cc86a8d6601045adc14a253284d7b791
Signed-off-by: default avatarLena Olson <(leolson@google.com)>
Reviewed-on: https://gem5-review.googlesource.com/2168


Reviewed-by: default avatarJason Lowe-Power <jason@lowepower.com>
Reviewed-by: default avatarJoe Gross <criusx@gmail.com>
Reviewed-by: default avatarSooraj Puthoor <puthoorsooraj@gmail.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
[ Rebased onto master ]
Signed-off-by: default avatarAndreas Sandberg <andreas.sandberg@arm.com>
parent 93e20c9a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment