Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SelectionDAGBuilder] use bitcast instead of AnyExtOrTrunc if copy pa…
…rts from an int vector to a float vector to fix issue #58615 The getCopyFromPartsVector doesn't work correctly when PartEVT and ValueVT have both different element type and different size. This patch 1) removes the part of a comment that contains the incorrect assumption that element type are the same 2) use bitcast when copy parts of int vector to a float vector after the subvector extraction Reviewed By: Peter, efriedma Differential Revision: https://reviews.llvm.org/D136726
- Loading branch information
1 parent
3481898
commit ef0d689
Showing
2 changed files
with
16 additions
and
4 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,11 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
; RUN: llc < %s -mtriple=aarch64 | FileCheck %s | ||
|
||
define <1 x float> @f(<16 x i64> %0, <1 x float> %1) { | ||
; CHECK-LABEL: f: | ||
; CHECK: // %bb.0: // %BB | ||
; CHECK-NEXT: ldr d0, [sp] | ||
; CHECK-NEXT: ret | ||
BB: | ||
ret <1 x float> %1 | ||
} |