http://sourceware.org/bugzilla/show_bug.cgi?id=15034
Bug #: 15034 Summary: MOVABS fails in intel syntax, good in att. Behavior mismatch intel vs att syntax Product: binutils Version: 2.23 Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassig...@sourceware.org ReportedBy: akob...@mail.ru Classification: Unclassified GNU assembler version 2.23.1 (x86_64-linux-gnu) using BFD version (GNU Binutils) 2.23.1 Sorry for my english. My assembly code generated by GCC 4.7.2 from cpp source. Assembly code and cpp are 100% correct. Error in GAS code analiser, which stick on nonexistent error. The error appear only while used intel syntax (gcc -masm=intel) and do not appear with default (att) syntax (without -masm=intel). The c++ code which introduces error: *(volatile int*)0xFEE00000; Command line: x86_64-linux-gnu-gcc -c -Wall -Wno-attributes -save-temps -fverbose-asm -masm=intel -march=core2 -mcmodel=large -mno-mmx -mno-sse -O1 -fno-rtti -fno-default-inline -fomit-frame-pointer -falign-functions=16 -foptimize-sibling-calls -ffreestanding -fno-stack-protector --no-exceptions Boot64.cpp Screen output: Boot64.s: Assembler messages: Boot64.s:91: Error: operand type mismatch for `movabs' Saved assembly listing (part of them): =============================================================================== .file "Boot64.cpp" .intel_syntax noprefix # GNU C++ (GCC) version 4.7 (x86_64-linux-gnu) # compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1, MPC version 0.9 # GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 # options passed: -fpreprocessed Boot64.ii -masm=intel -march=core2 # -mcmodel=large -mno-mmx -mno-sse -O1 -Wall -Wno-attributes -fverbose-asm # -fno-rtti -fomit-frame-pointer -falign-functions=16 # -foptimize-sibling-calls -ffreestanding -fno-stack-protector # -fno-exceptions # options enabled: -fasynchronous-unwind-tables -fauto-inc-dec # -fbranch-count-reg -fcombine-stack-adjustments -fcommon -fcompare-elim # -fcprop-registers -fdebug-types-section -fdefer-pop # -fdelete-null-pointer-checks -fdwarf2-cfi-asm -fearly-inlining # -feliminate-unused-debug-types -fforward-propagate -ffunction-cse # -fgcse-lm -fgnu-runtime -fguess-branch-probability -fident # -fif-conversion -fif-conversion2 -finline -finline-atomics # -finline-functions-called-once -fipa-profile -fipa-pure-const # -fipa-reference -fira-share-save-slots -fira-share-spill-slots -fivopts # -fkeep-static-consts -fleading-underscore -fmath-errno -fmerge-constants # -fmerge-debug-strings -fmove-loop-invariants -fomit-frame-pointer # -foptimize-sibling-calls -fpeephole -fprefetch-loop-arrays # -freg-struct-return -fsched-critical-path-heuristic # -fsched-dep-count-heuristic -fsched-group-heuristic -fsched-interblock # -fsched-last-insn-heuristic -fsched-rank-heuristic -fsched-spec # -fsched-spec-insn-heuristic -fsched-stalled-insns-dep -fshow-column # -fshrink-wrap -fsigned-zeros -fsplit-ivs-in-unroller -fsplit-wide-types # -fstrict-volatile-bitfields -ftoplevel-reorder -ftrapping-math # -ftree-bit-ccp -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename # -ftree-cselim -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop # -ftree-fre -ftree-loop-if-convert -ftree-loop-im -ftree-loop-ivcanon # -ftree-loop-optimize -ftree-parallelize-loops= -ftree-phiprop -ftree-pta # -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-slp-vectorize # -ftree-sra -ftree-ter -ftree-vect-loop-version -funit-at-a-time # -funwind-tables -fvect-cost-model -fverbose-asm -fzero-initialized-in-bss # -m128bit-long-double -m64 -m80387 -maccumulate-outgoing-args # -malign-stringops -mcx16 -mfancy-math-387 -mfp-ret-in-387 -mglibc # -mieee-fp -mno-sse4 -mpush-args -mred-zone -msahf -mtls-direct-seg-refs .text _Z6Start0v: .LFB94: .cfi_startproc sub rsp, 8 #, .cfi_def_cfa_offset 16 movabs eax, 4276092928 # vol.1, <--- ERROR AT THIS LINE ... =============================================================================== -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils