[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/store_op_load_fold.ll
Evan Cheng
evan.cheng at apple.com
Thu Feb 2 22:46:53 PST 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
store_op_load_fold.ll added (r1.1)
---
Log message:
Added a (store (op (load ...) ...) ...) folding test case.
---
Diffs of the changes: (+14 -0)
store_op_load_fold.ll | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/store_op_load_fold.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/store_op_load_fold.ll:1.1
*** /dev/null Fri Feb 3 00:46:51 2006
--- llvm/test/Regression/CodeGen/X86/store_op_load_fold.ll Fri Feb 3 00:46:41 2006
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | not grep 'mov'
+ ;
+ ; Test the add and load are folded into the store instruction.
+
+ target triple = "i686-pc-linux-gnu"
+
+ %X = weak global short 0
+
+ void %foo() {
+ %tmp.0 = load short* %X
+ %tmp.3 = add short %tmp.0, 329
+ store short %tmp.3, short* %X
+ ret void
+ }
More information about the llvm-commits
mailing list