summaryrefslogtreecommitdiff
path: root/asm/assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/assemble.c')
-rw-r--r--asm/assemble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/asm/assemble.c b/asm/assemble.c
index 5e7f6fa1..3bfccec0 100644
--- a/asm/assemble.c
+++ b/asm/assemble.c
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- *
*
- * Copyright 1996-2017 The NASM Authors - All Rights Reserved
+ * Copyright 1996-2018 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
@@ -1353,7 +1353,7 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits,
length++;
} else if ((ins->rex & REX_L) &&
!(ins->rex & (REX_P|REX_W|REX_X|REX_B)) &&
- iflag_ffs(&cpu) >= IF_X86_64) {
+ iflag_cpu_level_ok(&cpu, IF_X86_64)) {
/* LOCK-as-REX.R */
assert_no_prefix(ins, PPS_LOCK);
lockcheck = false; /* Already errored, no need for warning */