aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--simplify.c1
-rw-r--r--validation/kill-replaced-insn.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/simplify.c b/simplify.c
index f62fc83a..6ab9f622 100644
--- a/simplify.c
+++ b/simplify.c
@@ -201,6 +201,7 @@ void kill_instruction(struct instruction *insn)
case OP_SCAST:
case OP_FPCAST:
case OP_PTRCAST:
+ case OP_SETVAL:
case OP_NOT: case OP_NEG:
kill_use(&insn->src1);
break;
diff --git a/validation/kill-replaced-insn.c b/validation/kill-replaced-insn.c
index be031b6c..92021877 100644
--- a/validation/kill-replaced-insn.c
+++ b/validation/kill-replaced-insn.c
@@ -30,6 +30,12 @@ static int kill_select(int a)
return (a ? 1 : 0) && 0;
}
+static int kill_setval(int a)
+{
+l:
+ return &&l && 0;
+}
+
static int kill_load(int *a)
{
return *a && 0;
@@ -51,4 +57,5 @@ static int kill_store(int *a)
* check-output-excludes: ptrcast\\.
* check-output-excludes: fpcast\\.
* check-output-excludes: sel\\.
+ * check-output-excludes: set\\.
*/