https://sourceware.org/bugzilla/show_bug.cgi?id=18883
Bug ID: 18883 Summary: Confusing error message for test Product: binutils Version: 2.25 Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: spoofedexistence at gmail dot com Target Milestone: --- I accidentally swapped the order of the operands for test, one being a memory operand and the other being a constant: testq 0x18(%rsp), $3 I would expect the error message about "invalid operand", but in stead it displays: Error: operand size mismatch for `test' This doesn't always seem to happen; some systems produced the same output, some did not, see http://forum.osdev.org/viewtopic.php?f=11&t=29559&start=15 In my case, this was a cross compiler on my Mac: $ /usr/local/cross/bin/x86_64-elf-as --version GNU assembler (GNU Binutils) 2.24 Copyright 2013 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `x86_64-elf'. -- 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