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.
[GlobalISel] Bail out early for big-endian (llvm#103310)
If we continue through the function we can currently hit crashes. We can bail out early and fall back to SDAG. Fixes llvm#103032
- Loading branch information
1 parent
d5617ad
commit 05d17a1
Showing
6 changed files
with
35 additions
and
2 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
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,21 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 | ||
; RUN: llc -mtriple aarch64-unknown-linux-musl -O0 -global-isel-abort=2 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-LE | ||
; RUN: llc -mtriple aarch64_be-unknown-linux-musl -O0 -global-isel-abort=2 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-BE | ||
|
||
; Make sure we fall-back to SDAG for BE targets. | ||
|
||
; CHECK-LE-NOT: warning: Instruction selection used fallback path for foo | ||
; CHECK-BE: warning: Instruction selection used fallback path for foo | ||
|
||
define <4 x i6> @foo(float %0, <4 x i6> %1) { | ||
; CHECK-LE-LABEL: foo: | ||
; CHECK-LE: // %bb.0: | ||
; CHECK-LE-NEXT: fmov d0, d1 | ||
; CHECK-LE-NEXT: ret | ||
; | ||
; CHECK-BE-LABEL: foo: | ||
; CHECK-BE: // %bb.0: | ||
; CHECK-BE-NEXT: fmov d0, d1 | ||
; CHECK-BE-NEXT: ret | ||
ret <4 x i6> %1 | ||
} |
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