mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-17 05:20:32 +00:00
convert to filechecconvert to filecheckk
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108112 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
243a73d0e6
commit
ddef83536c
@ -1,14 +1,14 @@
|
|||||||
; RUN: opt < %s -instcombine -S | grep load | count 1
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||||
|
|
||||||
; Instcombine should be able to do trivial CSE of loads.
|
; Instcombine should be able to do trivial CSE of loads.
|
||||||
|
|
||||||
declare void @use(double %n)
|
define i32 @test1(i32* %p) {
|
||||||
define void @bar(double* %p) {
|
%t0 = getelementptr i32* %p, i32 1
|
||||||
%t0 = getelementptr double* %p, i32 1
|
%y = load i32* %t0
|
||||||
%y = load double* %t0
|
%t1 = getelementptr i32* %p, i32 1
|
||||||
%t1 = getelementptr double* %p, i32 1
|
%x = load i32* %t1
|
||||||
%x = load double* %t1
|
%a = sub i32 %y, %x
|
||||||
call void @use(double %x)
|
ret i32 %a
|
||||||
call void @use(double %y)
|
; CHECK: @test1
|
||||||
ret void
|
; CHECK: ret i32 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user