For PR950:
[oota-llvm.git] / test / CodeGen / PowerPC / small-arguments.ll
index 40217f65569fe5afbfeb1ab5293658aa1ed53bb6..aa0d5b6d1b76327a4f58d878dd7972aa69768242 100644 (file)
@@ -1,15 +1,14 @@
-
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'extsh\|rlwinm'
 
-declare short %foo()
+declare short @sext %foo()
 
-int %test1(short %X) {
+int %test1(short @sext %X) {
        %Y = cast short %X to int  ;; dead
        ret int %Y
 }
 
-int %test2(ushort %X) {
+int %test2(ushort @zext %X) {
        %Y = cast ushort %X to int
        %Z = and int %Y, 65535      ;; dead
        ret int %Z
@@ -48,8 +47,7 @@ uint %test6(uint* %P) {
         ret uint %tmp.2
 }
 
-ushort %test7(float %a) {
+ushort @zext %test7(float %a) {
         %tmp.1 = cast float %a to ushort
         ret ushort %tmp.1
 }
-