mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
New testcase for wierd combine opportunity found in bzip2 benchmark
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c8a37061a
commit
0097e41993
@ -6,16 +6,20 @@
|
|||||||
; RUN: else exit 0
|
; RUN: else exit 0
|
||||||
; RUN: fi
|
; RUN: fi
|
||||||
|
|
||||||
implementation
|
%X = uninitialized global int
|
||||||
|
|
||||||
bool "test1"(int %A) {
|
bool "test1"(int %A) {
|
||||||
%B = seteq int %A, %A
|
%B = seteq int %A, %A
|
||||||
ret bool %B
|
%C = seteq int* %X, null ; Never true
|
||||||
|
%D = and bool %B, %C
|
||||||
|
ret bool %D
|
||||||
}
|
}
|
||||||
|
|
||||||
bool "test2"(int %A) {
|
bool "test2"(int %A) {
|
||||||
%B = setne int %A, %A
|
%B = setne int %A, %A
|
||||||
ret bool %B
|
%C = setne int* %X, null ; Never false
|
||||||
|
%D = or bool %B, %C
|
||||||
|
ret bool %D
|
||||||
}
|
}
|
||||||
|
|
||||||
bool "test3"(int %A) {
|
bool "test3"(int %A) {
|
||||||
|
Loading…
Reference in New Issue
Block a user