Hey,

Commit 1d10cd6185edfd46d51f6562bff832a9b5d36cff solved the problem.

Thanks to Andreas Sandberg for fixing it!

Regards

> Am 19.05.2017 um 15:53 schrieb Matthias Jung <[email protected]>:
> 
> Hey,
> 
> I get the following compiling issue with gem5 on macOS Sierra (10.12.4) with 
> clang Apple LLVM 8.1.0:
> 
> 
> 
> In file included from build/ARM/arch/arm/generated/generic_cpu_exec_6.cc:11:
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189454:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189506:28: note: in instantiation 
> of member function 'ArmISAInst::SqaddDX<signed char>::execute' requested here
>    Fault SqaddDX<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189454:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189510:29: note: in instantiation 
> of member function 'ArmISAInst::SqaddDX<short>::execute' requested here
>    Fault SqaddDX<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189601:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189653:28: note: in instantiation 
> of member function 'ArmISAInst::SqaddQX<signed char>::execute' requested here
>    Fault SqaddQX<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189601:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189657:29: note: in instantiation 
> of member function 'ArmISAInst::SqaddQX<short>::execute' requested here
>    Fault SqaddQX<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189757:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189809:29: note: in instantiation 
> of member function 'ArmISAInst::SqaddScX<signed char>::execute' requested here
>    Fault SqaddScX<int8_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189757:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189813:30: note: in instantiation 
> of member function 'ArmISAInst::SqaddScX<short>::execute' requested here
>    Fault SqaddScX<int16_t>::execute(
>                             ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189919:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:189984:34: note: in instantiation 
> of member function 'ArmISAInst::SqdmlalElemX<short>::execute' requested here
>    Fault SqdmlalElemX<int16_t>::execute(
>                                 ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190086:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190151:35: note: in instantiation 
> of member function 'ArmISAInst::SqdmlalElem2X<short>::execute' requested here
>    Fault SqdmlalElem2X<int16_t>::execute(
>                                  ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190258:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190323:36: note: in instantiation 
> of member function 'ArmISAInst::SqdmlalElemScX<short>::execute' requested here
>    Fault SqdmlalElemScX<int16_t>::execute(
>                                   ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190417:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190482:30: note: in instantiation 
> of member function 'ArmISAInst::SqdmlalX<short>::execute' requested here
>    Fault SqdmlalX<int16_t>::execute(
>                             ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190576:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190641:31: note: in instantiation 
> of member function 'ArmISAInst::Sqdmlal2X<short>::execute' requested here
>    Fault Sqdmlal2X<int16_t>::execute(
>                              ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190740:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190805:32: note: in instantiation 
> of member function 'ArmISAInst::SqdmlalScX<short>::execute' requested here
>    Fault SqdmlalScX<int16_t>::execute(
>                               ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190907:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:190972:34: note: in instantiation 
> of member function 'ArmISAInst::SqdmlslElemX<short>::execute' requested here
>    Fault SqdmlslElemX<int16_t>::execute(
>                                 ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191074:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191139:35: note: in instantiation 
> of member function 'ArmISAInst::SqdmlslElem2X<short>::execute' requested here
>    Fault SqdmlslElem2X<int16_t>::execute(
>                                  ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191246:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191311:36: note: in instantiation 
> of member function 'ArmISAInst::SqdmlslElemScX<short>::execute' requested here
>    Fault SqdmlslElemScX<int16_t>::execute(
>                                   ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191405:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191470:30: note: in instantiation 
> of member function 'ArmISAInst::SqdmlslX<short>::execute' requested here
>    Fault SqdmlslX<int16_t>::execute(
>                             ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191564:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191629:31: note: in instantiation 
> of member function 'ArmISAInst::Sqdmlsl2X<short>::execute' requested here
>    Fault Sqdmlsl2X<int16_t>::execute(
>                              ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191728:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:191793:32: note: in instantiation 
> of member function 'ArmISAInst::SqdmlslScX<short>::execute' requested here
>    Fault SqdmlslScX<int16_t>::execute(
>                               ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:194020:41: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>            Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                    ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:194079:36: note: in instantiation 
> of member function 'ArmISAInst::SqrdmulhElemDX<short>::execute' requested here
>    Fault SqrdmulhElemDX<int16_t>::execute(
>                                   ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> scons: *** [build/ARM/arch/arm/generated/generic_cpu_exec_6.o] Error 1
> In file included from build/ARM/arch/arm/generated/generic_cpu_exec_4.cc:11:
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114121:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114160:28: note: in instantiation 
> of member function 'ArmISAInst::VqaddSD<signed char>::execute' requested here
>    Fault VqaddSD<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114121:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114164:29: note: in instantiation 
> of member function 'ArmISAInst::VqaddSD<short>::execute' requested here
>    Fault VqaddSD<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114264:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114319:28: note: in instantiation 
> of member function 'ArmISAInst::VqaddSQ<signed char>::execute' requested here
>    Fault VqaddSQ<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114264:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114323:29: note: in instantiation 
> of member function 'ArmISAInst::VqaddSQ<short>::execute' requested here
>    Fault VqaddSQ<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114683:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114722:28: note: in instantiation 
> of member function 'ArmISAInst::VqsubSD<signed char>::execute' requested here
>    Fault VqsubSD<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114683:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114726:29: note: in instantiation 
> of member function 'ArmISAInst::VqsubSD<short>::execute' requested here
>    Fault VqsubSD<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114826:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114881:28: note: in instantiation 
> of member function 'ArmISAInst::VqsubSQ<signed char>::execute' requested here
>    Fault VqsubSQ<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114826:35: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>            destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                     ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:114885:29: note: in instantiation 
> of member function 'ArmISAInst::VqsubSQ<short>::execute' requested here
>    Fault VqsubSQ<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:119942:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:120022:28: note: in instantiation 
> of member function 'ArmISAInst::Vqdmlal<signed char>::execute' requested here
>    Fault Vqdmlal<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:119942:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:120026:29: note: in instantiation 
> of member function 'ArmISAInst::Vqdmlal<short>::execute' requested here
>    Fault Vqdmlal<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:120127:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:120207:28: note: in instantiation 
> of member function 'ArmISAInst::Vqdmlsl<signed char>::execute' requested here
>    Fault Vqdmlsl<int8_t>::execute(
>                           ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:120127:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:120211:29: note: in instantiation 
> of member function 'ArmISAInst::Vqdmlsl<short>::execute' requested here
>    Fault Vqdmlsl<int16_t>::execute(
>                            ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121852:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121898:30: note: in instantiation 
> of member function 'ArmISAInst::VqrdmulhD<signed char>::execute' requested 
> here
>    Fault VqrdmulhD<int8_t>::execute(
>                             ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121860:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121852:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121902:31: note: in instantiation 
> of member function 'ArmISAInst::VqrdmulhD<short>::execute' requested here
>    Fault VqrdmulhD<int16_t>::execute(
>                              ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121860:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121996:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:122058:30: note: in instantiation 
> of member function 'ArmISAInst::VqrdmulhQ<signed char>::execute' requested 
> here
>    Fault VqrdmulhQ<int8_t>::execute(
>                             ^
> build/ARM/arch/arm/generated/exec-ns.cc.inc:122004:39: error: implicit 
> conversion from 'int' to 'Element' (aka 'signed char') changes value from 128 
> to -128
>      [-Werror,-Wconstant-conversion]
>                destElem = (Element)1 << (sizeof(Element) * 8 - 1);
>                         ~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:121996:37: error: implicit 
> conversion from 'int' to 'Element' (aka 'short') changes value from 32768 to 
> -32768
>      [-Werror,-Wconstant-conversion]
>        Element maxNeg = (Element)1 << (sizeof(Element) * 8 - 1);
>                ~~~~~~   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> build/ARM/arch/arm/generated/exec-ns.cc.inc:122062:31: note: in instantiation 
> of member function 'ArmISAInst::VqrdmulhQ<short>::execute' requested here
>    Fault VqrdmulhQ<int16_t>::execute(
>                              ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> scons: *** [build/ARM/arch/arm/generated/generic_cpu_exec_4.o] Error 1
> scons: building terminated because of errors.
> 
> 
> Has somebody an idea? This is generated code, so I won’t try to fix something 
> here or?
> 
> Any inputs, pointers or hints are appreciated.
> 
> Regards
> Matthias
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to