[WinEH] Add some test cases I forgot to add to previous commits
[oota-llvm.git] / test / CodeGen / Mips / mips16_32_8.ll
index 4152d687093e94958a5ab4a9ed20acfa37175de4..5e03928a11f1a757774ba58f0bb8ad1ba86542d9 100644 (file)
@@ -14,26 +14,25 @@ entry:
   ret void
 }
 
-; 32:  .set    mips16                  # @foo
+; 32:  .set    mips16
 ; 32:  .ent    foo
-; 32:  save    {{.+}}
-; 32:  restore {{.+}} 
+; 32:  jrc $ra
 ; 32:  .end    foo
 
 define void @nofoo() #1 {
 entry:
   store i32 20, i32* @i, align 4
-  %0 = load float* @x, align 4
-  %1 = load float* @y, align 4
+  %0 = load float, float* @x, align 4
+  %1 = load float, float* @y, align 4
   %add = fadd float %0, %1
   store float %add, float* @f, align 4
-  %2 = load float* @f, align 4
+  %2 = load float, float* @f, align 4
   %conv = fpext float %2 to double
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([8 x i8]* @.str, i32 0, i32 0), double %conv)
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i32 0, i32 0), double %conv)
   ret void
 }
 
-; 32:  .set    nomips16                  # @nofoo
+; 32:  .set    nomips16
 ; 32:  .ent    nofoo
 ; 32:  .set    noreorder
 ; 32:  .set    nomacro
@@ -49,15 +48,15 @@ declare i32 @printf(i8*, ...) #2
 define i32 @main() #3 {
 entry:
   call void @foo()
-  %0 = load i32* @i, align 4
-  %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([11 x i8]* @.str1, i32 0, i32 0), i32 %0)
+  %0 = load i32, i32* @i, align 4
+  %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str1, i32 0, i32 0), i32 %0)
   call void @nofoo()
-  %1 = load i32* @i, align 4
-  %call1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([13 x i8]* @.str2, i32 0, i32 0), i32 %1)
+  %1 = load i32, i32* @i, align 4
+  %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str2, i32 0, i32 0), i32 %1)
   ret i32 0
 }
 
-; 32:  .set    nomips16                  # @main
+; 32:  .set    nomips16
 ; 32:  .ent    main
 ; 32:  .set    noreorder
 ; 32:  .set    nomacro