[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/imul-lea.ll store-global-address.ll
Evan Cheng
evan.cheng at apple.com
Sat Feb 25 02:16:23 PST 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
imul-lea.ll added (r1.1)
store-global-address.ll added (r1.1)
---
Log message:
New test case: use lea for imul by some constants.
---
Diffs of the changes: (+17 -0)
imul-lea.ll | 8 ++++++++
store-global-address.ll | 9 +++++++++
2 files changed, 17 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/imul-lea.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/imul-lea.ll:1.1
*** /dev/null Sat Feb 25 04:16:20 2006
--- llvm/test/Regression/CodeGen/X86/imul-lea.ll Sat Feb 25 04:16:10 2006
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep lea
+
+ declare int %foo()
+ int %test() {
+ %tmp.0 = tail call int %foo( ) ; <int> [#uses=1]
+ %tmp.1 = mul int %tmp.0, 9 ; <int> [#uses=1]
+ ret int %tmp.1
+ }
Index: llvm/test/Regression/CodeGen/X86/store-global-address.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/store-global-address.ll:1.1
*** /dev/null Sat Feb 25 04:16:23 2006
--- llvm/test/Regression/CodeGen/X86/store-global-address.ll Sat Feb 25 04:16:10 2006
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep movl | wc -l | grep 1
+
+ %dst = global int 0
+ %ptr = global int* null
+
+ void %test() {
+ store int* %dst, int** %ptr
+ ret void
+ }
More information about the llvm-commits
mailing list