[llvm-commits] [llvm] r91773 - in /llvm/trunk/test/CodeGen/PIC16: check_inc_files.ll test_indf_name.ll
Sanjiv Gupta
sanjiv.gupta at microchip.com
Sat Dec 19 03:38:14 PST 2009
Author: sgupta
Date: Sat Dec 19 05:38:14 2009
New Revision: 91773
URL: http://llvm.org/viewvc/llvm-project?rev=91773&view=rev
Log:
Test cases for changes done in 91768.
Added:
llvm/trunk/test/CodeGen/PIC16/check_inc_files.ll
llvm/trunk/test/CodeGen/PIC16/test_indf_name.ll
Added: llvm/trunk/test/CodeGen/PIC16/check_inc_files.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PIC16/check_inc_files.ll?rev=91773&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PIC16/check_inc_files.ll (added)
+++ llvm/trunk/test/CodeGen/PIC16/check_inc_files.ll Sat Dec 19 05:38:14 2009
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=pic16 | FileCheck %s
+
+;CHECK: #include p16f1xxx.inc
+;CHECK: #include stdmacros.inc
+
+define void @foo() nounwind {
+entry:
+ ret void
+}
Added: llvm/trunk/test/CodeGen/PIC16/test_indf_name.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PIC16/test_indf_name.ll?rev=91773&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/PIC16/test_indf_name.ll (added)
+++ llvm/trunk/test/CodeGen/PIC16/test_indf_name.ll Sat Dec 19 05:38:14 2009
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=pic16 | FileCheck %s
+
+ at pi = common global i16* null, align 1 ; <i16**> [#uses=1]
+
+define void @foo() nounwind {
+entry:
+ %tmp = load i16** @pi ; <i16*> [#uses=1]
+ store i16 1, i16* %tmp
+; CHECK: movwi {{[0-1]}}[INDF{{[0-1]}}]
+; CHECK: movwi {{[0-1]}}[INDF{{[0-1]}}]
+ ret void
+}
More information about the llvm-commits
mailing list