[llvm-commits] CVS: llvm/test/Feature/paramattrs.ll

Reid Spencer reid at x10sys.com
Wed Jan 3 16:03:52 PST 2007



Changes in directory llvm/test/Feature:

paramattrs.ll updated: 1.1 -> 1.2
---
Log message:

Test @zext and @sext fully as well as testing the "short" call syntax.


---
Diffs of the changes:  (+5 -3)

 paramattrs.ll |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/test/Feature/paramattrs.ll
diff -u llvm/test/Feature/paramattrs.ll:1.1 llvm/test/Feature/paramattrs.ll:1.2
--- llvm/test/Feature/paramattrs.ll:1.1	Wed Jan  3 17:54:02 2007
+++ llvm/test/Feature/paramattrs.ll	Wed Jan  3 18:03:37 2007
@@ -2,10 +2,11 @@
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
 
-%FunTy = type i32(i8 @zext)
+%ZFunTy = type i32(i8 @zext)
+%SFunTy = type i32(i8 @sext)
 
-declare i16 @(sext) "test"(i16 @sext %arg)      ; Differ only by vararg
-declare i16 "test2" (i16 %a1, i16 %a2)
+declare i16 @(sext) "test"(i16 @sext %arg)
+declare i8 @zext "test2" (i16 @zext %a2)
 
 implementation
 
@@ -13,6 +14,7 @@
     %val = trunc i32 %argc to i16
     %res = call i16 @sext (i16 @sext) *%test(i16 %val)
     %two = add i16 %res, %res
+    %res = call i8 @zext %test2(i16 %two @zext)
     %retVal = sext i16 %two to i32
     ret i32 %retVal
 }






More information about the llvm-commits mailing list