mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
Fix build breaks after r277028
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
681961f231
commit
1c394fcb96
@ -1592,6 +1592,7 @@ bool MachineConstEvaluator::evaluateZEXTr(const Register &R1, unsigned Width,
|
||||
bool MachineConstEvaluator::evaluateZEXTi(const APInt &A1, unsigned Width,
|
||||
unsigned Bits, APInt &Result) {
|
||||
unsigned BW = A1.getBitWidth();
|
||||
(void)BW;
|
||||
assert(Width >= Bits && BW >= Bits);
|
||||
APInt Mask = APInt::getLowBitsSet(Width, Bits);
|
||||
Result = A1.zextOrTrunc(Width) & Mask;
|
||||
|
@ -1,9 +1,12 @@
|
||||
; RUN: llc < %s -print-machineinstrs=expand-isel-pseudos -o /dev/null 2>&1 | FileCheck %s
|
||||
|
||||
; ARM & AArch64 run an extra SimplifyCFG which disrupts this test.
|
||||
; Hexagon crashes (PR23377)
|
||||
; XFAIL: arm,aarch64
|
||||
|
||||
; Hexagon runs passes that renumber the basic blocks, causing this test
|
||||
; to fail.
|
||||
; XFAIL: hexagon
|
||||
|
||||
; Make sure we have the correct weight attached to each successor.
|
||||
define i32 @test2(i32 %x) nounwind uwtable readnone ssp {
|
||||
; CHECK-LABEL: Machine code for function test2:
|
||||
|
Loading…
Reference in New Issue
Block a user