From 93e4dd493638fb50089c4b732a46d86dadc72756 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Sun, 28 Sep 2008 22:23:09 +0000 Subject: [PATCH] - setted store value to symconst + const which can replaced by an immediate [r22339] --- ir/be/test/am_possibilities.c | 73 ++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/ir/be/test/am_possibilities.c b/ir/be/test/am_possibilities.c index 389f18105..5118e7483 100644 --- a/ir/be/test/am_possibilities.c +++ b/ir/be/test/am_possibilities.c @@ -42,6 +42,7 @@ */ char sc[100]; +char* sc_pointers[100]; char c; int main(int argc, char **argv) @@ -143,92 +144,92 @@ void load_27(int base, int index) /* Destination address modes */ -void store_01(void) +void store_immediate_01(void) { - sc[0] = c; + sc_pointers[0] = sc + 42; } -void store_03(void) +void store_immediate_03(void) { - sc[1] = c; + sc_pointers[1] = sc + 42; } -void store_16(char* base) +void store_immediate_16(char** base) { - base[0] = c; + base[0] = sc + 42; } -void store_17(int base) +void store_immediate_17(int base) { - sc[base] = c; + sc_pointers[base] = sc + 42; } -void store_18(char* base) +void store_immediate_18(char** base) { - base[1] = c; + base[1] = sc + 42; } -void store_19(int base) +void store_immediate_19(int base) { - sc[base + 1] = c; + sc_pointers[base + 1] = sc + 42; } -void store_20_add(char* base, int index) +void store_immediate_20_add(char** base, int index) { - base[2 * index] = c; + base[2 * index] = sc + 42; } -void store_20_shift(char* base, int index) +void store_immediate_20_shift(char** base, int index) { - base[4 * index] = c; + base[4 * index] = sc + 42; } -void store_21_add(int base, int index) +void store_immediate_21_add(int base, int index) { - sc[base + 2 * index] = c; + sc_pointers[base + 2 * index] = sc + 42; } -void store_21_shift(int base, int index) +void store_immediate_21_shift(int base, int index) { - sc[base + 4 * index] = c; + sc_pointers[base + 4 * index] = sc + 42; } -void store_22_add(char* base, int index) +void store_immediate_22_add(char** base, int index) { - base[2 * index + 1] = c; + base[2 * index + 1] = sc + 42; } -void store_22_shift(char* base, int index) +void store_immediate_22_shift(char** base, int index) { - base[4 * index + 1] = c; + base[4 * index + 1] = sc + 42; } -void store_23_add(int base, int index) +void store_immediate_23_add(int base, int index) { - sc[base + 2 * index + 1] = c; + sc_pointers[base + 2 * index + 1] = sc + 42; } -void store_23_shift(int base, int index) +void store_immediate_23_shift(int base, int index) { - sc[base + 4 * index + 1] = c; + sc_pointers[base + 4 * index + 1] = sc + 42; } -void store_24(char* base, int index) +void store_immediate_24(char** base, int index) { - base[index] = c; + base[index] = sc + 42; } -void store_25(int base, int index) +void store_immediate_25(int base, int index) { - sc[base + index] = c; + sc_pointers[base + index] = sc + 42; } -void store_26(char* base, int index) +void store_immediate_26(char** base, int index) { - base[index + 1] = c; + base[index + 1] = sc + 42; } -void store_27(int base, int index) +void store_immediate_27(int base, int index) { - sc[base + index + 1] = c; + sc_pointers[base + index + 1] = sc + 42; } -- 2.20.1