Issue |
126227
|
Summary |
[ARM] Invalid invalid fixed-point conversion instructions accepted by assembler
|
Labels |
backend:ARM,
accepts-invalid,
mc
|
Assignees |
|
Reporter |
ostannard
|
These instructions are invalid because the two register operands must be the same, but they are accepted by the LLVM assembler. Both ARM and Thumb ISAs are affected.
```
.arm
vcvt.u32.f32 s0, s1, #1
vcvt.u32.f64 d3, d4, #1
.thumb
vcvt.u32.f32 s0, s1, #1
vcvt.u32.f64 d3, d4, #1
```
```
$ /work/llvm/build/bin/llvm-mc -triple armv8a < fixed-point.s
.code 32
.p2align 2
vcvt.u32.f32 s0, s0, #1
vcvt.u32.f64 d3, d3, #1
.code 16
.p2align 1
vcvt.u32.f32 s0, s0, #1
vcvt.u32.f64 d3, d3, #1
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs