projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework the rotate-by-1 instructions to be defined like the
[oota-llvm.git]
/
test
/
Integer
/
testmemory_bt.ll
diff --git
a/test/Integer/testmemory_bt.ll
b/test/Integer/testmemory_bt.ll
index 3062571a001649fd73faa03baf134157db354047..e503c56a33e687f94cfba053b5fed3e31a48ad8c 100644
(file)
--- a/
test/Integer/testmemory_bt.ll
+++ b/
test/Integer/testmemory_bt.ll
@@
-1,25
+1,24
@@
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
-; XFAIL: *
+
%struct = type { i31 , {float, {i9 } } , i64 }
%complexty = type {i31, {[4 x i9 *], float}, double}
%struct = type { i31 , {float, {i9 } } , i64 }
%complexty = type {i31, {[4 x i9 *], float}, double}
-implementation
-define i31 "main"()
+define i31
@
"main"()
begin
begin
- call i31
%
testfunction(i64 0, i64 1)
+ call i31
@
testfunction(i64 0, i64 1)
ret i31 0
end
ret i31 0
end
-define i31 "testfunction"(i64 %i0, i64 %j0)
+define i31
@
"testfunction"(i64 %i0, i64 %j0)
begin
%array0 = malloc [4 x i9] ; yields {[4 x i9]*}:array0
begin
%array0 = malloc [4 x i9] ; yields {[4 x i9]*}:array0
- %size = add i3
1
2, 2 ; yields {i31}:size = i31 %4
- %array1 = malloc i9, i3
1
4 ; yields {i9*}:array1
- %array2 = malloc i9, i3
1
%size ; yields {i9*}:array2
+ %size = add i3
2
2, 2 ; yields {i31}:size = i31 %4
+ %array1 = malloc i9, i3
2
4 ; yields {i9*}:array1
+ %array2 = malloc i9, i3
2
%size ; yields {i9*}:array2
%idx = getelementptr [4 x i9]* %array0, i64 0, i64 2
store i9 123, i9* %idx
%idx = getelementptr [4 x i9]* %array0, i64 0, i64 2
store i9 123, i9* %idx
@@
-28,8
+27,8
@@
begin
free i9* %array2
free i9* %array2
- %aa = alloca %complexty, i3
1
5
- %idx2 = getelementptr %complexty* %aa, i64 %i0, i3
1 1, i31
0, i64 %j0
+ %aa = alloca %complexty, i3
2
5
+ %idx2 = getelementptr %complexty* %aa, i64 %i0, i3
2 1, i32
0, i64 %j0
store i9 *null, i9** %idx2
%ptr = alloca i31 ; yields {i31*}:ptr
store i9 *null, i9** %idx2
%ptr = alloca i31 ; yields {i31*}:ptr
@@
-37,8
+36,8
@@
begin
%val = load i31* %ptr ; yields {i31}:val = i31 %3
%sptr = alloca %struct ; yields {%struct*}:sptr
%val = load i31* %ptr ; yields {i31}:val = i31 %3
%sptr = alloca %struct ; yields {%struct*}:sptr
- %ubsptr = getelementptr %struct * %sptr, i64 0, i3
1 1, i31
1 ; yields {{i9}*}:ubsptr
- %idx3 = getelementptr {i9} * %ubsptr, i64 0, i3
1
0
+ %ubsptr = getelementptr %struct * %sptr, i64 0, i3
2 1, i32
1 ; yields {{i9}*}:ubsptr
+ %idx3 = getelementptr {i9} * %ubsptr, i64 0, i3
2
0
store i9 4, i9* %idx3
ret i31 3
store i9 4, i9* %idx3
ret i31 3