mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
65585aa3fc
commit
ffdc4ff1c4
12
test/Analysis/LoadVN/dependent_loads.ll
Normal file
12
test/Analysis/LoadVN/dependent_loads.ll
Normal file
@ -0,0 +1,12 @@
|
||||
; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep sub
|
||||
|
||||
sbyte %test(sbyte** %P) {
|
||||
%A = load sbyte** %P
|
||||
%B = load sbyte* %A
|
||||
|
||||
%X = load sbyte** %P
|
||||
%Y = load sbyte* %X
|
||||
|
||||
%R = sub sbyte %B, %Y
|
||||
ret sbyte %R
|
||||
}
|
Loading…
Reference in New Issue
Block a user