[llvm-commits] CVS: llvm/test/Regression/Assembler/2005-02-09-AsmWriterStoreBug.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 9 09:42:39 PST 2005
Changes in directory llvm/test/Regression/Assembler:
2005-02-09-AsmWriterStoreBug.ll added (r1.1)
---
Log message:
New testcase that the asmwriter botches.
---
Diffs of the changes: (+14 -0)
2005-02-09-AsmWriterStoreBug.ll | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/Assembler/2005-02-09-AsmWriterStoreBug.ll
diff -c /dev/null llvm/test/Regression/Assembler/2005-02-09-AsmWriterStoreBug.ll:1.1
*** /dev/null Wed Feb 9 11:42:34 2005
--- llvm/test/Regression/Assembler/2005-02-09-AsmWriterStoreBug.ll Wed Feb 9 11:42:24 2005
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | llvm-dis | llvm-as
+
+ ; Ensure that the asm writer emits types before both operands of the
+ ; store, even though they can be the same.
+
+ %RecTy = type %RecTy*
+ implementation
+
+ void %foo() {
+ %A = malloc %RecTy
+ %B = malloc %RecTy
+ store %RecTy %B, %RecTy %A ;; Both ops are the same
+ ret void
+ }
More information about the llvm-commits
mailing list