mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
New test cases for PR1187
llvm-svn: 34052
This commit is contained in:
parent
1ca320bf4d
commit
e1224638a2
14
test/Assembler/2007-02-07-BasicBlockRename.ll
Normal file
14
test/Assembler/2007-02-07-BasicBlockRename.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; PR1187
|
||||
; RUN: llvm-upgrade < %s | llvm-as > /dev/null
|
||||
|
||||
implementation
|
||||
|
||||
int @main(int %argc, sbyte** %argv) {
|
||||
entry:
|
||||
%exit = alloca int, align 4 ; <i32*> [#uses=11]
|
||||
store int 0, int* %exit
|
||||
br label %exit
|
||||
|
||||
exit:
|
||||
ret int 0
|
||||
}
|
19
test/Assembler/2007-02-07-UpgradeGVarConflict.ll
Normal file
19
test/Assembler/2007-02-07-UpgradeGVarConflict.ll
Normal file
@ -0,0 +1,19 @@
|
||||
; For PR1187
|
||||
; RUN: llvm-upgrade < %s > /dev/null
|
||||
|
||||
%struct.isc_hash_t = type { uint, sbyte*, int, uint, uint,
|
||||
[4 x ubyte], ulong, ushort* }
|
||||
%hash = internal global %struct.isc_hash_t* null
|
||||
|
||||
implementation
|
||||
|
||||
void %somefunc() {
|
||||
%key_addr = alloca sbyte*
|
||||
%tmp21 = load sbyte** %key_addr
|
||||
%tmp22 = call fastcc uint %hash(sbyte* %tmp21, uint 0)
|
||||
ret void
|
||||
}
|
||||
|
||||
internal fastcc uint %hash(sbyte* %key, uint %case_sensitive) {
|
||||
ret uint 0
|
||||
}
|
Loading…
Reference in New Issue
Block a user