Relax dwarf line fragments. This fixes a crash in the included testcase.
[oota-llvm.git] / test / CodeGen / PowerPC / 2004-11-30-shr-var-crash.ll
index e768753d810ab03ed796e2587e0e849d1ee2db89..dea654ac0c0b9a65e698ca74e2b95eda08100abd 100644 (file)
@@ -1,7 +1,9 @@
-; RUN: llvm-as < %s | llc -march=ppc32
+; RUN: llc < %s -march=ppc32
 
-void %main() {
-       %shamt = add ubyte 0, 1         ; <ubyte> [#uses=1]
-       %tr2 = shr long 1, ubyte %shamt         ; <long> [#uses=0]
-       ret void
+define void @main() {
+        %shamt = add i8 0, 1            ; <i8> [#uses=1]
+        %shift.upgrd.1 = zext i8 %shamt to i64          ; <i64> [#uses=1]
+        %tr2 = ashr i64 1, %shift.upgrd.1               ; <i64> [#uses=0]
+        ret void
 }
+