| Issue |
124427
|
| Summary |
Error assembling movk instruction on aarch64 in clang 19 (breaks compiling isa-l on aarch64)
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
DaGenix
|
The following assembly:
```asm
.equ p4_low_b0, 0x0000
movk x1, p4_low_b0, lsl 16
```
Could be assembled by earlier versions of clang (I tested 16, 17, and 18). However, starting with 5da801386c2b820a4596fc6d8da6b5f4a6da94b4, trying to assemble this code now produces:
```
> clang -c test.S
test.S:2:25: error: unexpected token in argument list
movk x1, p4_low_b0, lsl 16
^
```
If we modify the code to not use `.equ`:
```asm
movk x1, 0x0000, lsl 16
```asm
Then it assembles without error.
I found this issue when attempting to compile https://github.com/intel/isa-l on MacOS aarch64 with clang 19.
FYI: @MaskRay
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs