[llvm] [ms] [llvm-ml] Allow PTR casting of registers to their own size (PR #132751)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 25 07:51:28 PDT 2025
================
@@ -0,0 +1,41 @@
+; RUN: not llvm-ml -m64 -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s
+
+.code
+
+mov word ptr al, ax
+; CHECK: error: 8-bit register 'AL' cannot be used as a 16-bit WORD
----------------
MaskRay wrote:
For errors, test line/column information like `[[#@LINE-1]:5: error:`. You might git log how I improve/refactor `llvm/test/MC/` tests.
https://github.com/llvm/llvm-project/pull/132751
More information about the llvm-commits
mailing list