mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 18:31:23 +00:00
13 lines
243 B
LLVM
13 lines
243 B
LLVM
|
; 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
|
||
|
}
|