1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 22:42:52 +01:00
llvm-mirror/test/Regression/Analysis/DSGraph/incompletenode.ll

24 lines
561 B
LLVM
Raw Normal View History

2003-06-29 03:09:07 +02:00
; This test was failing because the globals X and Y are marked incomplete
2003-06-29 03:03:53 +02:00
; in the TD graph for %test
; XFAIL: *
; RUN: llvm-as < %s | opt -no-aa -ds-aa -load-vn -gcse -instcombine | llvm-dis | not grep seteq
2003-06-29 03:03:53 +02:00
%X = internal global int 20
%Y = internal global int* null
implementation
2003-06-29 03:09:07 +02:00
internal bool %test(int** %P) {
2003-06-29 03:03:53 +02:00
%A = load int** %P ;; We know P == Y!
%B = load int** %Y ;; B = A
%c = seteq int* %A, %B ;; Always true
ret bool %c
}
int %main() {
store int* %X, int** %Y
call bool %test(int** %Y)
ret int 0
}