summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-10-18 10:15:13 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2017-01-12 13:13:29 +0100
commit5a8c7700d49623ff0b7d2fbfe99663b209b93d04 (patch)
tree87e14af93d4bbc0dfddb031b551e8881d8b0f354 /src
parent36305c91f0c79e4740e9e6ac3b735a10e6e266e0 (diff)
Add target `mips`.
Diffstat (limited to 'src')
-rw-r--r--src/driver/target.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/target.c b/src/driver/target.c
index b90de5b..e960a54 100644
--- a/src/driver/target.c
+++ b/src/driver/target.c
@@ -266,6 +266,13 @@ static void set_options_for_machine(machine_triple_t const *const machine)
long_double_size = 16;
float_int_overflow = ir_overflow_indefinite;
dialect.long_double_x87_80bit_float = true;
+ } else if (streq(cpu, "mips")) {
+ ppdef("__mips__", "1");
+ firm_isa = "mips";
+ pointer_size = 4;
+ modulo_shift = 32;
+ long_double_size = 8;
+ float_int_overflow = ir_overflow_indefinite;
} else {
errorf(NULL, "unknown cpu '%s' in target-triple", cpu);
exit(EXIT_FAILURE);