mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
d5508bfe28
Change the default for `-num-shuffles` to 5 and better document the algorithm in the header docs of `verify-uselistorder`. llvm-svn: 214419
22 lines
746 B
LLVM
22 lines
746 B
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder %s -preserve-bc-use-list-order
|
|
|
|
%struct.foobar = type { i32 }
|
|
|
|
@bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
|
|
@foo.d = internal constant %struct.foobar zeroinitializer, align 4
|
|
|
|
define i32 @main() unnamed_addr nounwind ssp {
|
|
entry:
|
|
%call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d) nounwind
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @zed(%struct.foobar*, %struct.foobar*)
|
|
|
|
; CHECK: @bar.d = internal unnamed_addr constant %struct.foobar zeroinitializer, align 4
|
|
; CHECK: @foo.d = internal constant %struct.foobar zeroinitializer, align 4
|
|
; CHECK: define i32 @main() unnamed_addr #0 {
|
|
|
|
; CHECK: attributes #0 = { nounwind ssp }
|