[llvm-commits] CVS: llvm/test/CodeGen/CBackend/2007-02-23-NameConflicts.ll
Bill Wendling
isanbard at gmail.com
Fri Feb 23 15:19:49 PST 2007
Changes in directory llvm/test/CodeGen/CBackend:
2007-02-23-NameConflicts.ll added (r1.1)
---
Log message:
Testcase for PR1164: http://llvm.org/PR1164
---
Diffs of the changes: (+13 -0)
2007-02-23-NameConflicts.ll | 13 +++++++++++++
1 files changed, 13 insertions(+)
Index: llvm/test/CodeGen/CBackend/2007-02-23-NameConflicts.ll
diff -c /dev/null llvm/test/CodeGen/CBackend/2007-02-23-NameConflicts.ll:1.1
*** /dev/null Fri Feb 23 17:19:42 2007
--- llvm/test/CodeGen/CBackend/2007-02-23-NameConflicts.ll Fri Feb 23 17:19:32 2007
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | llc -march=c | grep 'llvm_cbe_A = *llvm_cbe_G;' &&
+ ; RUN: llvm-as < %s | llc -march=c | grep 'llvm_cbe_B = *(<mp_0_1);' &&
+ ; RUN: llvm-as < %s | llc -march=c | grep 'return (llvm_cbe_A + llvm_cbe_B);'
+ ; PR1164
+ @G = global i32 123
+ @ltmp_0_1 = global i32 123
+
+ define i32 @test(i32 *%G) {
+ %A = load i32* %G
+ %B = load i32* @ltmp_0_1
+ %C = add i32 %A, %B
+ ret i32 %C
+ }
More information about the llvm-commits
mailing list