aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-04-06 09:07:17 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-04-06 09:07:17 +0200
commit6cf0154c1f00e0479c9bb1561944cb3b238a9e26 (patch)
treef49f94a790129549808fe7410b63c0e4389caad3
parentc31a684212cfc53bd2bcb3a918490246546328eb (diff)
downloadcompcert-kvx-6cf0154c1f00e0479c9bb1561944cb3b238a9e26.tar.gz
compcert-kvx-6cf0154c1f00e0479c9bb1561944cb3b238a9e26.zip
no need for this to be in two_address_op
-rw-r--r--mppa_k1c/Machregs.v2
-rw-r--r--test/monniaux/binary_search/binary_search.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mppa_k1c/Machregs.v b/mppa_k1c/Machregs.v
index f36962f3..823b13e9 100644
--- a/mppa_k1c/Machregs.v
+++ b/mppa_k1c/Machregs.v
@@ -209,7 +209,7 @@ Global Opaque
Definition two_address_op (op: operation) : bool :=
match op with
- | Ocast32unsigned | Omadd | Omaddimm _ | Omaddl | Omaddlimm _ | Oselect _ | Oselectl _ | Oselectf _ | Oselectfs _ => true
+ | Omadd | Omaddimm _ | Omaddl | Omaddlimm _ | Oselect _ | Oselectl _ | Oselectf _ | Oselectfs _ => true
| _ => false
end.
diff --git a/test/monniaux/binary_search/binary_search.c b/test/monniaux/binary_search/binary_search.c
index 9b54f28d..1fbc37b8 100644
--- a/test/monniaux/binary_search/binary_search.c
+++ b/test/monniaux/binary_search/binary_search.c
@@ -4,7 +4,7 @@
#include "../clock.h"
typedef int data;
-typedef int index;
+typedef unsigned index;
int my_bsearch (data *a, index n, data x) {
index i = 0, j = n - 1;