aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2018-07-30 17:25:05 +0200
committerJan Beulich <jbeulich@suse.com>2018-07-30 17:25:05 +0200
commit629cfaf1b0fbb32a985607c774bd8e7870b9fa94 (patch)
treea4d8c294a5a8a2071bc1afc3e658b4253f665d55 /gas/testsuite/gas/i386/evex-no-scale-64.d
parent * MAINTAINERS (C-SKY): Add Yunhai Shang as co-maintainer. (diff)
downloadbinutils-gdb-629cfaf1b0fbb32a985607c774bd8e7870b9fa94.tar.gz
binutils-gdb-629cfaf1b0fbb32a985607c774bd8e7870b9fa94.tar.bz2
binutils-gdb-629cfaf1b0fbb32a985607c774bd8e7870b9fa94.zip
x86: don't mistakenly scale non-8-bit displacements
In commit b5014f7af2 I've removed (instead of replaced) a conditional, resulting in addressing forms not allowing 8-bit displacements to now get their displacements scaled under certain circumstances. Re-add the missing conditional.
Diffstat (limited to 'gas/testsuite/gas/i386/evex-no-scale-64.d')
-rw-r--r--gas/testsuite/gas/i386/evex-no-scale-64.d15
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/evex-no-scale-64.d b/gas/testsuite/gas/i386/evex-no-scale-64.d
new file mode 100644
index 00000000000..b66f15bf8bc
--- /dev/null
+++ b/gas/testsuite/gas/i386/evex-no-scale-64.d
@@ -0,0 +1,15 @@
+#source: evex-no-scale.s
+#objdump: -dw
+#name: x86-64 EVEX no disp scaling
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+ <disp>:
+ +[a-f0-9]+: 62 f1 7c 48 28 05 00 fc ff ff vmovaps -0x400\(%rip\),%zmm0 # .*
+ +[a-f0-9]+: 62 f1 7c 48 28 04 05 40 00 00 00 vmovaps 0x40\(,%rax,1\),%zmm0
+ +[a-f0-9]+: 62 f1 7c 48 28 04 25 40 00 00 00 vmovaps 0x40,%zmm0
+ +[a-f0-9]+: 67 62 f1 7c 48 28 04 05 40 00 00 00 vmovaps 0x40\(,%eax,1\),%zmm0
+ +[a-f0-9]+: 67 62 f1 7c 48 28 04 25 40 00 00 00 addr32 vmovaps 0x40,%zmm0
+ +[a-f0-9]+: 62 f1 7c 48 28 04 25 40 00 00 00 vmovaps 0x40,%zmm0