Issue 95241
Summary [Clang] Change register types.
Labels clang
Assignees
Reporter witbring
    I discovered that Clang changes register types without any warning when processing invalid assembly code. 
I believe Clang should more accurately verify assembly syntax.


```
.intel_syntax noprefix
Bug:
 lar R11, R8W
    movmskpd R9, XMM0       
    pmovmskb R10, MM2
 tpause RDX
    umwait RBP    
```

```
Bug:
 lar r11,r8
 movmskpd r9d,xmm0
 pmovmskb r10d,mm2
 tpause edx
 umwait ebp
```

You can reproduce the bug through godbolt.
https://godbolt.org/z/WofxMjWqG
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to