mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb05f1ee93
commit
86ca0c1f8b
15
test/Transforms/LICM/2003-02-28-PromoteDifferentType.ll
Normal file
15
test/Transforms/LICM/2003-02-28-PromoteDifferentType.ll
Normal file
@ -0,0 +1,15 @@
|
||||
; Test that hoisting is disabled for pointers of different types...
|
||||
;
|
||||
; RUN: as < %s | opt -licm
|
||||
|
||||
void %test(int* %P) {
|
||||
br label %Loop
|
||||
Loop:
|
||||
store int 5, int* %P
|
||||
%P2 = cast int* %P to sbyte*
|
||||
store sbyte 4, sbyte* %P2
|
||||
br bool true, label %loop, label %Out
|
||||
Out:
|
||||
ret void
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user