You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
parent
a7724cd563
commit
279aa8f685
17
external/llvm/test/CodeGen/PowerPC/fastisel-gep-promote-before-add.ll
vendored
Normal file
17
external/llvm/test/CodeGen/PowerPC/fastisel-gep-promote-before-add.ll
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
; fastisel should not fold add with non-pointer bitwidth
|
||||
; sext(a) + sext(b) != sext(a + b)
|
||||
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-freebsd10.0 %s -O0 -o - | FileCheck %s
|
||||
|
||||
define zeroext i8 @gep_promotion(i8* %ptr) nounwind {
|
||||
entry:
|
||||
%ptr.addr = alloca i8*, align 8
|
||||
%add = add i8 64, 64 ; 0x40 + 0x40
|
||||
%0 = load i8*, i8** %ptr.addr, align 8
|
||||
|
||||
; CHECK-LABEL: gep_promotion:
|
||||
; CHECK: lbz {{[0-9]+}}, 0({{.*}})
|
||||
%arrayidx = getelementptr inbounds i8, i8* %0, i8 %add
|
||||
|
||||
%1 = load i8, i8* %arrayidx, align 1
|
||||
ret i8 %1
|
||||
}
|
Reference in New Issue
Block a user