mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
9 lines
195 B
LLVM
9 lines
195 B
LLVM
|
; RUN: llvm-as < %s | opt -sccp | llvm-dis | grep 'ret int 0'
|
||
|
|
||
|
; Test that SCCP has basic knowledge of when and/or nuke overdefined values.
|
||
|
|
||
|
int %test(int %X) {
|
||
|
%Y = and int %X, 0
|
||
|
ret int %Y
|
||
|
}
|