diff options
author | YamaArashi <shadow962@live.com> | 2016-03-08 23:25:19 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-03-08 23:25:19 -0800 |
commit | 7444c4f6f7881c4700f8c8cd4c87d3648f9c85a3 (patch) | |
tree | 2501ee3e1dbcdb1147a80588ae9dfb2e6d06aa68 /gcc/optabs.c | |
parent | 08234586501ffddc186f6e254ce6847faa139f5f (diff) |
remove big-endian target support
Diffstat (limited to 'gcc/optabs.c')
-rwxr-xr-x | gcc/optabs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 515e4c5..cf7fca8 100755 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -676,7 +676,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) WORDS_BIG_ENDIAN. */ left_shift = binoptab == ashl_optab; - outof_word = left_shift ^ ! WORDS_BIG_ENDIAN; + outof_word = left_shift ^ 1; outof_target = operand_subword (target, outof_word, 1, mode); into_target = operand_subword (target, 1 - outof_word, 1, mode); @@ -794,7 +794,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) WORDS_BIG_ENDIAN. */ left_shift = (binoptab == rotl_optab); - outof_word = left_shift ^ ! WORDS_BIG_ENDIAN; + outof_word = left_shift ^ 1; outof_target = operand_subword (target, outof_word, 1, mode); into_target = operand_subword (target, 1 - outof_word, 1, mode); @@ -924,7 +924,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) /* Do the actual arithmetic. */ for (i = 0; i < nwords; i++) { - int index = (WORDS_BIG_ENDIAN ? nwords - i - 1 : i); + int index = i; rtx target_piece = operand_subword (target, index, 1, mode); rtx op0_piece = operand_subword_force (xop0, index, mode); rtx op1_piece = operand_subword_force (xop1, index, mode); @@ -1061,8 +1061,8 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) || (smul_widen_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing))) { - int low = (WORDS_BIG_ENDIAN ? 1 : 0); - int high = (WORDS_BIG_ENDIAN ? 0 : 1); + int low = 0; + int high = 1; rtx op0_high = operand_subword_force (op0, high, mode); rtx op0_low = operand_subword_force (op0, low, mode); rtx op1_high = operand_subword_force (op1, high, mode); |