忍者ブログ

なんだか

知らないほうが幸せかもしれない

[PR]

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

gccのh8300部分をちょい直し

gcc/config/h8300/h8300.mdに
"0 /* Disable because it breaks compiling fp-bit.c. */
というところが2箇所あります
ここを1にすると何が起こるかというと

../../../../gcc-4.7.2/libgcc/fp-bit.c: In function ‘__subsf3’:
../../../../gcc-4.7.2/libgcc/fp-bit.c:772:1: error: insn does not satisfy its constraints:
(insn 63 20 22 2 (set (mem/c:QI (plus:SI (reg/f:SI 6 r6)
                (const_int -15 [0xfffffffffffffff1])) [0 b.sign+0 S1 A8])
        (xor:QI (mem/c:QI (plus:SI (reg/f:SI 6 r6)
                    (const_int -15 [0xfffffffffffffff1])) [0 b.sign+0 S1 A8])
            (const_int 1 [0x1]))) ../../../../gcc-4.7.2/libgcc/fp-bit.c:767 170 {xorqi3_1}
     (nil))
../../../../gcc-4.7.2/libgcc/fp-bit.c:772:1: internal compiler error: in
copyprop_hardreg_forward_1, at regcprop.c:767
Please submit a full bug report,with preprocessed source if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions.


上のエラーでビルドが失敗します。

(xor:QIの部分に注目して、どこが間違ってるかを探して見ました。

gcc/config/h8300/h8300.md
@@ -2174,7 +2174,7 @@
   [(set_attr "length" "8")])

 (define_insn "xorqi3_1"
-  [(set (match_operand:QI 0 "bit_operand" "=U,r")
+  [(set (match_operand:QI 0 "bit_operand" "=U,rQ")
        (xor:QI (match_operand:QI 1 "bit_operand" "%0,0")
                (match_operand:QI 2 "h8300_src_operand" "Y2,rQi")))]
   "TARGET_H8300SX || register_operand (operands[0], QImode)

他のbit操作系の記述とと比較すると、Qが抜けてるだけでした。

拍手[0回]

PR

コメント

お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード Vodafone絵文字 i-mode絵文字 Ezweb絵文字

カレンダー

03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

フリーエリア

最新CM

最新記事

(07/27)
(03/27)
(03/26)
(03/23)
(03/22)
(03/19)
(03/18)
(03/18)
(03/15)
(03/14)
(03/13)
(03/12)
(03/11)
(03/11)
(03/08)
(03/08)
(03/06)
(03/05)
(03/02)
(03/01)
(02/28)
(02/27)
(02/24)
(02/23)
(02/22)

プロフィール

HN:
kenrou
性別:
非公開

バーコード

ブログ内検索

最古記事

(12/15)
(12/16)
(12/17)
(12/18)
(12/19)
(12/20)
(12/21)
(12/22)
(12/23)
(12/24)
(12/25)
(12/26)
(12/27)
(12/28)
(12/29)
(12/30)
(12/31)
(01/01)
(01/02)
(01/21)
(01/22)
(01/23)
(01/24)
(01/24)
(01/28)

P R

忍者アナライズ

コガネモチ

忍者カウンター

カレンダー

03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30