projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't use a potentially expensive shift if all we want is one set bit.
[oota-llvm.git]
/
test
/
CodeGen
/
XCore
/
load.ll
diff --git
a/test/CodeGen/XCore/load.ll
b/test/CodeGen/XCore/load.ll
index faff03b1e70de923e2843e2f884c53021434d6dc..729fdef4c924fa7d35d004325faa2f884fcec8bd 100644
(file)
--- a/
test/CodeGen/XCore/load.ll
+++ b/
test/CodeGen/XCore/load.ll
@@
-39,3
+39,12
@@
entry:
%2 = zext i8 %1 to i32
ret i32 %2
}
+
+@GConst = external constant i32
+define i32 @load_cp() nounwind {
+entry:
+; CHECK: load_cp:
+; CHECK: ldw r0, cp[GConst]
+ %0 = load i32* @GConst
+ ret i32 %0
+}