projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move GlobalMerge from Transform to CodeGen.
[oota-llvm.git]
/
test
/
CodeGen
/
XCore
/
load.ll
diff --git
a/test/CodeGen/XCore/load.ll
b/test/CodeGen/XCore/load.ll
index 729fdef4c924fa7d35d004325faa2f884fcec8bd..c7fc2a33db1a8f070a46a463bc43924a6501d9a9 100644
(file)
--- a/
test/CodeGen/XCore/load.ll
+++ b/
test/CodeGen/XCore/load.ll
@@
-2,7
+2,7
@@
define i32 @load32(i32* %p, i32 %offset) nounwind {
entry:
define i32 @load32(i32* %p, i32 %offset) nounwind {
entry:
-; CHECK: load32:
+; CHECK
-LABEL
: load32:
; CHECK: ldw r0, r0[r1]
%0 = getelementptr i32* %p, i32 %offset
%1 = load i32* %0, align 4
; CHECK: ldw r0, r0[r1]
%0 = getelementptr i32* %p, i32 %offset
%1 = load i32* %0, align 4
@@
-11,7
+11,7
@@
entry:
define i32 @load32_imm(i32* %p) nounwind {
entry:
define i32 @load32_imm(i32* %p) nounwind {
entry:
-; CHECK: load32_imm:
+; CHECK
-LABEL
: load32_imm:
; CHECK: ldw r0, r0[11]
%0 = getelementptr i32* %p, i32 11
%1 = load i32* %0, align 4
; CHECK: ldw r0, r0[11]
%0 = getelementptr i32* %p, i32 11
%1 = load i32* %0, align 4
@@
-20,7
+20,7
@@
entry:
define i32 @load16(i16* %p, i32 %offset) nounwind {
entry:
define i32 @load16(i16* %p, i32 %offset) nounwind {
entry:
-; CHECK: load16:
+; CHECK
-LABEL
: load16:
; CHECK: ld16s r0, r0[r1]
; CHECK-NOT: sext
%0 = getelementptr i16* %p, i32 %offset
; CHECK: ld16s r0, r0[r1]
; CHECK-NOT: sext
%0 = getelementptr i16* %p, i32 %offset
@@
-31,7
+31,7
@@
entry:
define i32 @load8(i8* %p, i32 %offset) nounwind {
entry:
define i32 @load8(i8* %p, i32 %offset) nounwind {
entry:
-; CHECK: load8:
+; CHECK
-LABEL
: load8:
; CHECK: ld8u r0, r0[r1]
; CHECK-NOT: zext
%0 = getelementptr i8* %p, i32 %offset
; CHECK: ld8u r0, r0[r1]
; CHECK-NOT: zext
%0 = getelementptr i8* %p, i32 %offset
@@
-40,10
+40,10
@@
entry:
ret i32 %2
}
ret i32 %2
}
-@GConst =
external constant i3
2
+@GConst =
internal constant i32 4
2
define i32 @load_cp() nounwind {
entry:
define i32 @load_cp() nounwind {
entry:
-; CHECK: load_cp:
+; CHECK
-LABEL
: load_cp:
; CHECK: ldw r0, cp[GConst]
%0 = load i32* @GConst
ret i32 %0
; CHECK: ldw r0, cp[GConst]
%0 = load i32* @GConst
ret i32 %0