mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Filecheckize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e03456a65
commit
02df7e90cf
@ -1,5 +1,11 @@
|
||||
; RUN: opt < %s -basicaa -dse -S | not grep DEAD
|
||||
; RUN: opt < %s -basicaa -dse -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64"
|
||||
|
||||
; CHECK: @test
|
||||
; CHECK-NEXT: bitcast
|
||||
; CHECK-NEXT: @free
|
||||
; CHECK-NEXT: ret void
|
||||
define void @test(i32* %Q, i32* %P) {
|
||||
%DEAD = load i32* %Q ; <i32> [#uses=1]
|
||||
store i32 %DEAD, i32* %P
|
||||
@ -7,9 +13,14 @@ define void @test(i32* %Q, i32* %P) {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: @test2
|
||||
; CHECK-NEXT: bitcast
|
||||
; CHECK-NEXT: @free
|
||||
; CHECK-NEXT: ret void
|
||||
define void @test2({i32, i32}* %P) {
|
||||
%Q = getelementptr {i32, i32} *%P, i32 0, i32 1
|
||||
store i32 4, i32* %Q
|
||||
free {i32,i32}* %P
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user