Abort on an unrecognized opcode.
[oota-llvm.git] / test / Integer / testarith_bt.ll
index 0dce41fb5137065108ef760b705edfbce0130696..0820399a30929efd956f750df3c1f1225bc6cd70 100644 (file)
@@ -2,9 +2,8 @@
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
 
-implementation
 
-define i31 "simpleArith"(i31 %i0, i31 %j0)
+define i31 @"simpleArith"(i31 %i0, i31 %j0)
 begin
        %t1 = add i31 %i0, %j0
        %t2 = sub i31 %i0, %j0
@@ -13,6 +12,9 @@ begin
         %t5 = sdiv i31 %t1, %t2
         %t6 = urem i31 %t1, %t2
         %t7 = srem i31 %t1, %t2
+        %t8 = shl  i31 %t1, 9
+        %t9 = lshr i31 %t1, 9
+        %t10= ashr i31 %t1, 9
         %f1 = sitofp i31 %t1 to float
         %f2 = fdiv float 4.0, %f1
        ret i31 %t3