aboutsummaryrefslogtreecommitdiff
path: root/src/nodes.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 20:32:48 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 20:32:48 +0300
commit9295e8f445dae6431f8e7c543eb8c374742b136d (patch)
treed85bbc15fb8d23089d4f5eeae44eececaaa9a2ee /src/nodes.c
parent0f8532d4e7315b86e160abf4ced461e7678b5587 (diff)
downloadqbt-9295e8f445dae6431f8e7c543eb8c374742b136d.tar.gz
qbt-9295e8f445dae6431f8e7c543eb8c374742b136d.zip
add constant value to some instructions
Diffstat (limited to 'src/nodes.c')
-rw-r--r--src/nodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodes.c b/src/nodes.c
index 22fc454..07a1706 100644
--- a/src/nodes.c
+++ b/src/nodes.c
@@ -7,9 +7,9 @@
#include <qbt/vec.h>
void insadd(struct blk *b, enum insn_type o, enum val_type t, struct val r,
- struct val a0, struct val a1)
+ struct val a0, struct val a1, long long v)
{
- struct insn i = insn_create(o, t, r, a0, a1);
+ struct insn i = insn_create(o, t, r, a0, a1, v);
vec_append(&b->insns, &i);
}