mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-10 06:24:58 +00:00
Check another case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2424 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68d024dde4
commit
01853e8773
@ -1,6 +1,6 @@
|
|||||||
; The %A getelementptr instruction should be eliminated here
|
; The %A getelementptr instruction should be eliminated here
|
||||||
|
|
||||||
; RUN: if as < %s | opt -instcombine -dce | dis | grep getelementptr | grep -v '%C'
|
; RUN: if as < %s | opt -instcombine -dce | dis | grep getelementptr | grep '%A'
|
||||||
; RUN: then exit 1
|
; RUN: then exit 1
|
||||||
; RUN: else exit 0
|
; RUN: else exit 0
|
||||||
; RUN: fi
|
; RUN: fi
|
||||||
@ -19,3 +19,9 @@ begin
|
|||||||
ret int* %C
|
ret int* %C
|
||||||
end
|
end
|
||||||
|
|
||||||
|
int *"foo2"(int * %I)
|
||||||
|
begin
|
||||||
|
%A = getelementptr int* %I, uint 0 ; Noop
|
||||||
|
ret int * %A
|
||||||
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user