diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 11:06:25 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-04-13 12:39:57 -0400 |
commit | 4a4a0132915c1fff92f7b874121e25015b7de115 (patch) | |
tree | 5a1ee3f14cb0c499c4cc862c0af476436f58758c | |
parent | 0e85eb82829f4cadf856ae4d60749d63a195588a (diff) | |
download | roux-4a4a0132915c1fff92f7b874121e25015b7de115.tar.gz |
add unsigned comparisons to emit
-rw-r--r-- | emit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emit.c b/emit.c index e88f550..6b624e0 100644 --- a/emit.c +++ b/emit.c @@ -95,11 +95,15 @@ static struct { { OXCmp, Kd, "comisd %D0, %D1" }, { OXCmp, Ki, "cmp%k %0, %1" }, { OXTest, Ki, "test%k %0, %1" }, - { OXSet+ICeq, Ki, "setz %B=\n\tmovzb%k %B=, %=" }, + { OXSet+ICule, Ki, "setbe %B=\n\tmovzb%k %B=, %=" }, + { OXSet+ICult, Ki, "setb %B=\n\tmovzb%k %B=, %=" }, { OXSet+ICsle, Ki, "setle %B=\n\tmovzb%k %B=, %=" }, { OXSet+ICslt, Ki, "setl %B=\n\tmovzb%k %B=, %=" }, { OXSet+ICsgt, Ki, "setg %B=\n\tmovzb%k %B=, %=" }, { OXSet+ICsge, Ki, "setge %B=\n\tmovzb%k %B=, %=" }, + { OXSet+ICugt, Ki, "seta %B=\n\tmovzb%k %B=, %=" }, + { OXSet+ICuge, Ki, "setae %B=\n\tmovzb%k %B=, %=" }, + { OXSet+ICeq, Ki, "setz %B=\n\tmovzb%k %B=, %=" }, { OXSet+ICne, Ki, "setnz %B=\n\tmovzb%k %B=, %=" }, { OXSet+ICXnp, Ki, "setnp %B=\n\tmovsb%k %B=, %=" }, { OXSet+ICXp, Ki, "setp %B=\n\tmovsb%k %B=, %=" }, |