forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ARM] Reject fixed-point VCVT with different registers (llvm#126232)
These instructions only have one register field in their encoding, so both registers in the assembly must be the same. Previously, we were accepting these instructions, but ignoring the second register operand. Fixes llvm#126227
- Loading branch information
Showing
5 changed files
with
146 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// RUN: not llvm-mc -triple=armv8a-none-eabi -mattr=+fullfp16 < %s 2>&1 | FileCheck %s | ||
|
||
vcvt.u16.f16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.s16.f16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.u32.f16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.s32.f16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.u16.f32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.s16.f32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.u32.f32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.s32.f32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.u16.f64 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.s16.f64 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.u32.f64 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.s32.f64 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f16.u16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f16.s16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f16.u32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f16.s32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f32.u16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f32.s16 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f32.u32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f32.s32 s0, s1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f64.u16 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f64.s16 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f64.u32 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
vcvt.f64.s32 d0, d1, #1 | ||
// CHECK: [[@LINE-1]]{{.*}}error: source and destination registers must be the same | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters