mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +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
|
||
|
}
|