1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
llvm-mirror/test/MC/X86/x86-directive-nops-errors.s
Jian Cai 7f1bdb7b20 [X86] support .nops directive
Add support of .nops on X86. This addresses llvm.org/PR45788.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D82826
2020-08-03 11:50:56 -07:00

13 lines
503 B
ArmAsm

# RUN: not llvm-mc -triple i386 %s -filetype=obj -o /dev/null 2>&1 | FileCheck --check-prefix=X86 %s
# RUN: not llvm-mc -triple=x86_64 %s -filetype=obj -o /dev/null 2>&1 | FileCheck --check-prefix=X64 %s
.nops 4, 3
# X86: :[[@LINE-1]]:1: error: illegal NOP size 3.
.nops 4, 4
# X86: :[[@LINE-1]]:1: error: illegal NOP size 4.
.nops 4, 5
# X86: :[[@LINE-1]]:1: error: illegal NOP size 5.
.nops 16, 15
# X86: :[[@LINE-1]]:1: error: illegal NOP size 15.
# X64: :[[@LINE-2]]:1: error: illegal NOP size 15.