mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Add a 64-bit test case.
llvm-svn: 29069
This commit is contained in:
parent
0438b0c461
commit
e5204df53a
@ -0,0 +1,16 @@
|
||||
; RUN: llvm-as < %s | llc -mtriple=powerpc64-apple-darwin | grep extsw | wc -l | grep 2
|
||||
|
||||
%lens = external global ubyte*
|
||||
%vals = external global int*
|
||||
|
||||
int %test(int %i) {
|
||||
%tmp = load ubyte** %lens
|
||||
%tmp1 = getelementptr ubyte* %tmp, int %i
|
||||
%tmp = load ubyte* %tmp1
|
||||
%tmp2 = cast ubyte %tmp to int
|
||||
%tmp3 = load int** %vals
|
||||
%tmp5 = sub int 1, %tmp2
|
||||
%tmp6 = getelementptr int* %tmp3, int %tmp5
|
||||
%tmp7 = load int* %tmp6
|
||||
ret int %tmp7
|
||||
}
|
Loading…
Reference in New Issue
Block a user